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/timestamptz_value.h" |
45 | | #include "core/value/vdatetime_value.h" |
46 | | #include "exprs/expr_zonemap_filter.h" |
47 | | #include "exprs/function/function.h" |
48 | | #include "exprs/function/function_helpers.h" |
49 | | #include "exprs/function/functions_logical.h" |
50 | | #include "exprs/vexpr.h" |
51 | | #include "storage/index/index_reader_helper.h" |
52 | | #include "storage/index/inverted/inverted_index_iterator.h" |
53 | | |
54 | | namespace doris { |
55 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
56 | | * The comparison functions always return 0 or 1 (UInt8). |
57 | | * |
58 | | * You can compare the following types: |
59 | | * - numbers and decimals; |
60 | | * - strings and fixed strings; |
61 | | * - dates; |
62 | | * - datetimes; |
63 | | * within each group, but not from different groups; |
64 | | * - tuples (lexicographic comparison). |
65 | | * |
66 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
67 | | */ |
68 | | |
69 | | template <typename A, typename B, typename Op> |
70 | | struct NumComparisonImpl { |
71 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
72 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
73 | 11.5k | PaddedPODArray<UInt8>& c) { |
74 | 11.5k | size_t size = a.size(); |
75 | 11.5k | const A* __restrict a_pos = a.data(); |
76 | 11.5k | const B* __restrict b_pos = b.data(); |
77 | 11.5k | UInt8* __restrict c_pos = c.data(); |
78 | 11.5k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 6.14M | while (a_pos < a_end) { |
81 | 6.13M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 6.13M | ++a_pos; |
83 | 6.13M | ++b_pos; |
84 | 6.13M | ++c_pos; |
85 | 6.13M | } |
86 | 11.5k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 63 | PaddedPODArray<UInt8>& c) { | 74 | 63 | size_t size = a.size(); | 75 | 63 | const A* __restrict a_pos = a.data(); | 76 | 63 | const B* __restrict b_pos = b.data(); | 77 | 63 | UInt8* __restrict c_pos = c.data(); | 78 | 63 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 130 | while (a_pos < a_end) { | 81 | 67 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 67 | ++a_pos; | 83 | 67 | ++b_pos; | 84 | 67 | ++c_pos; | 85 | 67 | } | 86 | 63 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 187 | PaddedPODArray<UInt8>& c) { | 74 | 187 | size_t size = a.size(); | 75 | 187 | const A* __restrict a_pos = a.data(); | 76 | 187 | const B* __restrict b_pos = b.data(); | 77 | 187 | UInt8* __restrict c_pos = c.data(); | 78 | 187 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.31k | while (a_pos < a_end) { | 81 | 1.12k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.12k | ++a_pos; | 83 | 1.12k | ++b_pos; | 84 | 1.12k | ++c_pos; | 85 | 1.12k | } | 86 | 187 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 203 | PaddedPODArray<UInt8>& c) { | 74 | 203 | size_t size = a.size(); | 75 | 203 | const A* __restrict a_pos = a.data(); | 76 | 203 | const B* __restrict b_pos = b.data(); | 77 | 203 | UInt8* __restrict c_pos = c.data(); | 78 | 203 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 428 | while (a_pos < a_end) { | 81 | 225 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 225 | ++a_pos; | 83 | 225 | ++b_pos; | 84 | 225 | ++c_pos; | 85 | 225 | } | 86 | 203 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 114 | PaddedPODArray<UInt8>& c) { | 74 | 114 | size_t size = a.size(); | 75 | 114 | const A* __restrict a_pos = a.data(); | 76 | 114 | const B* __restrict b_pos = b.data(); | 77 | 114 | UInt8* __restrict c_pos = c.data(); | 78 | 114 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 287 | while (a_pos < a_end) { | 81 | 173 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 173 | ++a_pos; | 83 | 173 | ++b_pos; | 84 | 173 | ++c_pos; | 85 | 173 | } | 86 | 114 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12 | while (a_pos < a_end) { | 81 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 10 | ++a_pos; | 83 | 10 | ++b_pos; | 84 | 10 | ++c_pos; | 85 | 10 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 124 | PaddedPODArray<UInt8>& c) { | 74 | 124 | size_t size = a.size(); | 75 | 124 | const A* __restrict a_pos = a.data(); | 76 | 124 | const B* __restrict b_pos = b.data(); | 77 | 124 | UInt8* __restrict c_pos = c.data(); | 78 | 124 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 390 | while (a_pos < a_end) { | 81 | 266 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 266 | ++a_pos; | 83 | 266 | ++b_pos; | 84 | 266 | ++c_pos; | 85 | 266 | } | 86 | 124 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 88 | PaddedPODArray<UInt8>& c) { | 74 | 88 | size_t size = a.size(); | 75 | 88 | const A* __restrict a_pos = a.data(); | 76 | 88 | const B* __restrict b_pos = b.data(); | 77 | 88 | UInt8* __restrict c_pos = c.data(); | 78 | 88 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 176 | while (a_pos < a_end) { | 81 | 88 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 88 | ++a_pos; | 83 | 88 | ++b_pos; | 84 | 88 | ++c_pos; | 85 | 88 | } | 86 | 88 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 982 | PaddedPODArray<UInt8>& c) { | 74 | 982 | size_t size = a.size(); | 75 | 982 | const A* __restrict a_pos = a.data(); | 76 | 982 | const B* __restrict b_pos = b.data(); | 77 | 982 | UInt8* __restrict c_pos = c.data(); | 78 | 982 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 3.31k | while (a_pos < a_end) { | 81 | 2.33k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.33k | ++a_pos; | 83 | 2.33k | ++b_pos; | 84 | 2.33k | ++c_pos; | 85 | 2.33k | } | 86 | 982 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 162 | PaddedPODArray<UInt8>& c) { | 74 | 162 | size_t size = a.size(); | 75 | 162 | const A* __restrict a_pos = a.data(); | 76 | 162 | const B* __restrict b_pos = b.data(); | 77 | 162 | UInt8* __restrict c_pos = c.data(); | 78 | 162 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.56k | while (a_pos < a_end) { | 81 | 1.40k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.40k | ++a_pos; | 83 | 1.40k | ++b_pos; | 84 | 1.40k | ++c_pos; | 85 | 1.40k | } | 86 | 162 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 46 | PaddedPODArray<UInt8>& c) { | 74 | 46 | size_t size = a.size(); | 75 | 46 | const A* __restrict a_pos = a.data(); | 76 | 46 | const B* __restrict b_pos = b.data(); | 77 | 46 | UInt8* __restrict c_pos = c.data(); | 78 | 46 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 92 | while (a_pos < a_end) { | 81 | 46 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 46 | ++a_pos; | 83 | 46 | ++b_pos; | 84 | 46 | ++c_pos; | 85 | 46 | } | 86 | 46 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 5 | PaddedPODArray<UInt8>& c) { | 74 | 5 | size_t size = a.size(); | 75 | 5 | const A* __restrict a_pos = a.data(); | 76 | 5 | const B* __restrict b_pos = b.data(); | 77 | 5 | UInt8* __restrict c_pos = c.data(); | 78 | 5 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5 | ++a_pos; | 83 | 5 | ++b_pos; | 84 | 5 | ++c_pos; | 85 | 5 | } | 86 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 13 | PaddedPODArray<UInt8>& c) { | 74 | 13 | size_t size = a.size(); | 75 | 13 | const A* __restrict a_pos = a.data(); | 76 | 13 | const B* __restrict b_pos = b.data(); | 77 | 13 | UInt8* __restrict c_pos = c.data(); | 78 | 13 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 26 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 788 | PaddedPODArray<UInt8>& c) { | 74 | 788 | size_t size = a.size(); | 75 | 788 | const A* __restrict a_pos = a.data(); | 76 | 788 | const B* __restrict b_pos = b.data(); | 77 | 788 | UInt8* __restrict c_pos = c.data(); | 78 | 788 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 38.4k | while (a_pos < a_end) { | 81 | 37.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 37.6k | ++a_pos; | 83 | 37.6k | ++b_pos; | 84 | 37.6k | ++c_pos; | 85 | 37.6k | } | 86 | 788 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 67 | PaddedPODArray<UInt8>& c) { | 74 | 67 | size_t size = a.size(); | 75 | 67 | const A* __restrict a_pos = a.data(); | 76 | 67 | const B* __restrict b_pos = b.data(); | 77 | 67 | UInt8* __restrict c_pos = c.data(); | 78 | 67 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 153 | while (a_pos < a_end) { | 81 | 86 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 86 | ++a_pos; | 83 | 86 | ++b_pos; | 84 | 86 | ++c_pos; | 85 | 86 | } | 86 | 67 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 85 | PaddedPODArray<UInt8>& c) { | 74 | 85 | size_t size = a.size(); | 75 | 85 | const A* __restrict a_pos = a.data(); | 76 | 85 | const B* __restrict b_pos = b.data(); | 77 | 85 | UInt8* __restrict c_pos = c.data(); | 78 | 85 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 236 | while (a_pos < a_end) { | 81 | 151 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 151 | ++a_pos; | 83 | 151 | ++b_pos; | 84 | 151 | ++c_pos; | 85 | 151 | } | 86 | 85 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 4 | PaddedPODArray<UInt8>& c) { | 74 | 4 | size_t size = a.size(); | 75 | 4 | const A* __restrict a_pos = a.data(); | 76 | 4 | const B* __restrict b_pos = b.data(); | 77 | 4 | UInt8* __restrict c_pos = c.data(); | 78 | 4 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 8 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 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 | 73 | 39 | PaddedPODArray<UInt8>& c) { | 74 | 39 | size_t size = a.size(); | 75 | 39 | const A* __restrict a_pos = a.data(); | 76 | 39 | const B* __restrict b_pos = b.data(); | 77 | 39 | UInt8* __restrict c_pos = c.data(); | 78 | 39 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 108 | while (a_pos < a_end) { | 81 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 69 | ++a_pos; | 83 | 69 | ++b_pos; | 84 | 69 | ++c_pos; | 85 | 69 | } | 86 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 8 | PaddedPODArray<UInt8>& c) { | 74 | 8 | size_t size = a.size(); | 75 | 8 | const A* __restrict a_pos = a.data(); | 76 | 8 | const B* __restrict b_pos = b.data(); | 77 | 8 | UInt8* __restrict c_pos = c.data(); | 78 | 8 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 16 | while (a_pos < a_end) { | 81 | 8 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 8 | ++a_pos; | 83 | 8 | ++b_pos; | 84 | 8 | ++c_pos; | 85 | 8 | } | 86 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 56 | PaddedPODArray<UInt8>& c) { | 74 | 56 | size_t size = a.size(); | 75 | 56 | const A* __restrict a_pos = a.data(); | 76 | 56 | const B* __restrict b_pos = b.data(); | 77 | 56 | UInt8* __restrict c_pos = c.data(); | 78 | 56 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 252 | while (a_pos < a_end) { | 81 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 196 | ++a_pos; | 83 | 196 | ++b_pos; | 84 | 196 | ++c_pos; | 85 | 196 | } | 86 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 911 | PaddedPODArray<UInt8>& c) { | 74 | 911 | size_t size = a.size(); | 75 | 911 | const A* __restrict a_pos = a.data(); | 76 | 911 | const B* __restrict b_pos = b.data(); | 77 | 911 | UInt8* __restrict c_pos = c.data(); | 78 | 911 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 364k | while (a_pos < a_end) { | 81 | 363k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 363k | ++a_pos; | 83 | 363k | ++b_pos; | 84 | 363k | ++c_pos; | 85 | 363k | } | 86 | 911 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 395 | PaddedPODArray<UInt8>& c) { | 74 | 395 | size_t size = a.size(); | 75 | 395 | const A* __restrict a_pos = a.data(); | 76 | 395 | const B* __restrict b_pos = b.data(); | 77 | 395 | UInt8* __restrict c_pos = c.data(); | 78 | 395 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 7.61k | while (a_pos < a_end) { | 81 | 7.22k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 7.22k | ++a_pos; | 83 | 7.22k | ++b_pos; | 84 | 7.22k | ++c_pos; | 85 | 7.22k | } | 86 | 395 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.10k | PaddedPODArray<UInt8>& c) { | 74 | 1.10k | size_t size = a.size(); | 75 | 1.10k | const A* __restrict a_pos = a.data(); | 76 | 1.10k | const B* __restrict b_pos = b.data(); | 77 | 1.10k | UInt8* __restrict c_pos = c.data(); | 78 | 1.10k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.77M | while (a_pos < a_end) { | 81 | 2.77M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.77M | ++a_pos; | 83 | 2.77M | ++b_pos; | 84 | 2.77M | ++c_pos; | 85 | 2.77M | } | 86 | 1.10k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 33 | PaddedPODArray<UInt8>& c) { | 74 | 33 | size_t size = a.size(); | 75 | 33 | const A* __restrict a_pos = a.data(); | 76 | 33 | const B* __restrict b_pos = b.data(); | 77 | 33 | UInt8* __restrict c_pos = c.data(); | 78 | 33 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 80 | while (a_pos < a_end) { | 81 | 47 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 47 | ++a_pos; | 83 | 47 | ++b_pos; | 84 | 47 | ++c_pos; | 85 | 47 | } | 86 | 33 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 64 | PaddedPODArray<UInt8>& c) { | 74 | 64 | size_t size = a.size(); | 75 | 64 | const A* __restrict a_pos = a.data(); | 76 | 64 | const B* __restrict b_pos = b.data(); | 77 | 64 | UInt8* __restrict c_pos = c.data(); | 78 | 64 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 374 | while (a_pos < a_end) { | 81 | 310 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 310 | ++a_pos; | 83 | 310 | ++b_pos; | 84 | 310 | ++c_pos; | 85 | 310 | } | 86 | 64 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 376 | while (a_pos < a_end) { | 81 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 264 | ++a_pos; | 83 | 264 | ++b_pos; | 84 | 264 | ++c_pos; | 85 | 264 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 59 | PaddedPODArray<UInt8>& c) { | 74 | 59 | size_t size = a.size(); | 75 | 59 | const A* __restrict a_pos = a.data(); | 76 | 59 | const B* __restrict b_pos = b.data(); | 77 | 59 | UInt8* __restrict c_pos = c.data(); | 78 | 59 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 359 | while (a_pos < a_end) { | 81 | 300 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 300 | ++a_pos; | 83 | 300 | ++b_pos; | 84 | 300 | ++c_pos; | 85 | 300 | } | 86 | 59 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 181 | PaddedPODArray<UInt8>& c) { | 74 | 181 | size_t size = a.size(); | 75 | 181 | const A* __restrict a_pos = a.data(); | 76 | 181 | const B* __restrict b_pos = b.data(); | 77 | 181 | UInt8* __restrict c_pos = c.data(); | 78 | 181 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 800k | while (a_pos < a_end) { | 81 | 800k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 800k | ++a_pos; | 83 | 800k | ++b_pos; | 84 | 800k | ++c_pos; | 85 | 800k | } | 86 | 181 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 3 | PaddedPODArray<UInt8>& c) { | 74 | 3 | size_t size = a.size(); | 75 | 3 | const A* __restrict a_pos = a.data(); | 76 | 3 | const B* __restrict b_pos = b.data(); | 77 | 3 | UInt8* __restrict c_pos = c.data(); | 78 | 3 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 9 | while (a_pos < a_end) { | 81 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6 | ++a_pos; | 83 | 6 | ++b_pos; | 84 | 6 | ++c_pos; | 85 | 6 | } | 86 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 31 | PaddedPODArray<UInt8>& c) { | 74 | 31 | size_t size = a.size(); | 75 | 31 | const A* __restrict a_pos = a.data(); | 76 | 31 | const B* __restrict b_pos = b.data(); | 77 | 31 | UInt8* __restrict c_pos = c.data(); | 78 | 31 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 102 | while (a_pos < a_end) { | 81 | 71 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 71 | ++a_pos; | 83 | 71 | ++b_pos; | 84 | 71 | ++c_pos; | 85 | 71 | } | 86 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 6 | PaddedPODArray<UInt8>& c) { | 74 | 6 | size_t size = a.size(); | 75 | 6 | const A* __restrict a_pos = a.data(); | 76 | 6 | const B* __restrict b_pos = b.data(); | 77 | 6 | UInt8* __restrict c_pos = c.data(); | 78 | 6 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 70 | while (a_pos < a_end) { | 81 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 64 | ++a_pos; | 83 | 64 | ++b_pos; | 84 | 64 | ++c_pos; | 85 | 64 | } | 86 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 359 | PaddedPODArray<UInt8>& c) { | 74 | 359 | size_t size = a.size(); | 75 | 359 | const A* __restrict a_pos = a.data(); | 76 | 359 | const B* __restrict b_pos = b.data(); | 77 | 359 | UInt8* __restrict c_pos = c.data(); | 78 | 359 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.45k | while (a_pos < a_end) { | 81 | 1.09k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.09k | ++a_pos; | 83 | 1.09k | ++b_pos; | 84 | 1.09k | ++c_pos; | 85 | 1.09k | } | 86 | 359 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 64 | while (a_pos < a_end) { | 81 | 44 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 44 | ++a_pos; | 83 | 44 | ++b_pos; | 84 | 44 | ++c_pos; | 85 | 44 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 17 | PaddedPODArray<UInt8>& c) { | 74 | 17 | size_t size = a.size(); | 75 | 17 | const A* __restrict a_pos = a.data(); | 76 | 17 | const B* __restrict b_pos = b.data(); | 77 | 17 | UInt8* __restrict c_pos = c.data(); | 78 | 17 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 86 | while (a_pos < a_end) { | 81 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 69 | ++a_pos; | 83 | 69 | ++b_pos; | 84 | 69 | ++c_pos; | 85 | 69 | } | 86 | 17 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 108 | PaddedPODArray<UInt8>& c) { | 74 | 108 | size_t size = a.size(); | 75 | 108 | const A* __restrict a_pos = a.data(); | 76 | 108 | const B* __restrict b_pos = b.data(); | 77 | 108 | UInt8* __restrict c_pos = c.data(); | 78 | 108 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 864 | while (a_pos < a_end) { | 81 | 756 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 756 | ++a_pos; | 83 | 756 | ++b_pos; | 84 | 756 | ++c_pos; | 85 | 756 | } | 86 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 68 | while (a_pos < a_end) { | 81 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 45 | ++a_pos; | 83 | 45 | ++b_pos; | 84 | 45 | ++c_pos; | 85 | 45 | } | 86 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 85 | PaddedPODArray<UInt8>& c) { | 74 | 85 | size_t size = a.size(); | 75 | 85 | const A* __restrict a_pos = a.data(); | 76 | 85 | const B* __restrict b_pos = b.data(); | 77 | 85 | UInt8* __restrict c_pos = c.data(); | 78 | 85 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 344 | while (a_pos < a_end) { | 81 | 259 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 259 | ++a_pos; | 83 | 259 | ++b_pos; | 84 | 259 | ++c_pos; | 85 | 259 | } | 86 | 85 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.78k | PaddedPODArray<UInt8>& c) { | 74 | 1.78k | size_t size = a.size(); | 75 | 1.78k | const A* __restrict a_pos = a.data(); | 76 | 1.78k | const B* __restrict b_pos = b.data(); | 77 | 1.78k | UInt8* __restrict c_pos = c.data(); | 78 | 1.78k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.79M | while (a_pos < a_end) { | 81 | 1.79M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.79M | ++a_pos; | 83 | 1.79M | ++b_pos; | 84 | 1.79M | ++c_pos; | 85 | 1.79M | } | 86 | 1.78k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 235 | PaddedPODArray<UInt8>& c) { | 74 | 235 | size_t size = a.size(); | 75 | 235 | const A* __restrict a_pos = a.data(); | 76 | 235 | const B* __restrict b_pos = b.data(); | 77 | 235 | UInt8* __restrict c_pos = c.data(); | 78 | 235 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 818 | while (a_pos < a_end) { | 81 | 583 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 583 | ++a_pos; | 83 | 583 | ++b_pos; | 84 | 583 | ++c_pos; | 85 | 583 | } | 86 | 235 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 111 | PaddedPODArray<UInt8>& c) { | 74 | 111 | size_t size = a.size(); | 75 | 111 | const A* __restrict a_pos = a.data(); | 76 | 111 | const B* __restrict b_pos = b.data(); | 77 | 111 | UInt8* __restrict c_pos = c.data(); | 78 | 111 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 233 | while (a_pos < a_end) { | 81 | 122 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 122 | ++a_pos; | 83 | 122 | ++b_pos; | 84 | 122 | ++c_pos; | 85 | 122 | } | 86 | 111 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 214 | PaddedPODArray<UInt8>& c) { | 74 | 214 | size_t size = a.size(); | 75 | 214 | const A* __restrict a_pos = a.data(); | 76 | 214 | const B* __restrict b_pos = b.data(); | 77 | 214 | UInt8* __restrict c_pos = c.data(); | 78 | 214 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 602 | while (a_pos < a_end) { | 81 | 388 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 388 | ++a_pos; | 83 | 388 | ++b_pos; | 84 | 388 | ++c_pos; | 85 | 388 | } | 86 | 214 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 155 | PaddedPODArray<UInt8>& c) { | 74 | 155 | size_t size = a.size(); | 75 | 155 | const A* __restrict a_pos = a.data(); | 76 | 155 | const B* __restrict b_pos = b.data(); | 77 | 155 | UInt8* __restrict c_pos = c.data(); | 78 | 155 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 486 | while (a_pos < a_end) { | 81 | 331 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 331 | ++a_pos; | 83 | 331 | ++b_pos; | 84 | 331 | ++c_pos; | 85 | 331 | } | 86 | 155 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 897 | PaddedPODArray<UInt8>& c) { | 74 | 897 | size_t size = a.size(); | 75 | 897 | const A* __restrict a_pos = a.data(); | 76 | 897 | const B* __restrict b_pos = b.data(); | 77 | 897 | UInt8* __restrict c_pos = c.data(); | 78 | 897 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.48k | while (a_pos < a_end) { | 81 | 1.58k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.58k | ++a_pos; | 83 | 1.58k | ++b_pos; | 84 | 1.58k | ++c_pos; | 85 | 1.58k | } | 86 | 897 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 262 | PaddedPODArray<UInt8>& c) { | 74 | 262 | size_t size = a.size(); | 75 | 262 | const A* __restrict a_pos = a.data(); | 76 | 262 | const B* __restrict b_pos = b.data(); | 77 | 262 | UInt8* __restrict c_pos = c.data(); | 78 | 262 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 337k | while (a_pos < a_end) { | 81 | 337k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 337k | ++a_pos; | 83 | 337k | ++b_pos; | 84 | 337k | ++c_pos; | 85 | 337k | } | 86 | 262 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 133 | PaddedPODArray<UInt8>& c) { | 74 | 133 | size_t size = a.size(); | 75 | 133 | const A* __restrict a_pos = a.data(); | 76 | 133 | const B* __restrict b_pos = b.data(); | 77 | 133 | UInt8* __restrict c_pos = c.data(); | 78 | 133 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 440 | while (a_pos < a_end) { | 81 | 307 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 307 | ++a_pos; | 83 | 307 | ++b_pos; | 84 | 307 | ++c_pos; | 85 | 307 | } | 86 | 133 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 110 | PaddedPODArray<UInt8>& c) { | 74 | 110 | size_t size = a.size(); | 75 | 110 | const A* __restrict a_pos = a.data(); | 76 | 110 | const B* __restrict b_pos = b.data(); | 77 | 110 | UInt8* __restrict c_pos = c.data(); | 78 | 110 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 868 | while (a_pos < a_end) { | 81 | 758 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 758 | ++a_pos; | 83 | 758 | ++b_pos; | 84 | 758 | ++c_pos; | 85 | 758 | } | 86 | 110 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 129 | PaddedPODArray<UInt8>& c) { | 74 | 129 | size_t size = a.size(); | 75 | 129 | const A* __restrict a_pos = a.data(); | 76 | 129 | const B* __restrict b_pos = b.data(); | 77 | 129 | UInt8* __restrict c_pos = c.data(); | 78 | 129 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 451 | while (a_pos < a_end) { | 81 | 322 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 322 | ++a_pos; | 83 | 322 | ++b_pos; | 84 | 322 | ++c_pos; | 85 | 322 | } | 86 | 129 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 132 | PaddedPODArray<UInt8>& c) { | 74 | 132 | size_t size = a.size(); | 75 | 132 | const A* __restrict a_pos = a.data(); | 76 | 132 | const B* __restrict b_pos = b.data(); | 77 | 132 | UInt8* __restrict c_pos = c.data(); | 78 | 132 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 464 | while (a_pos < a_end) { | 81 | 332 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 332 | ++a_pos; | 83 | 332 | ++b_pos; | 84 | 332 | ++c_pos; | 85 | 332 | } | 86 | 132 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 388 | PaddedPODArray<UInt8>& c) { | 74 | 388 | size_t size = a.size(); | 75 | 388 | const A* __restrict a_pos = a.data(); | 76 | 388 | const B* __restrict b_pos = b.data(); | 77 | 388 | UInt8* __restrict c_pos = c.data(); | 78 | 388 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.05k | while (a_pos < a_end) { | 81 | 5.66k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.66k | ++a_pos; | 83 | 5.66k | ++b_pos; | 84 | 5.66k | ++c_pos; | 85 | 5.66k | } | 86 | 388 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 24 | PaddedPODArray<UInt8>& c) { | 74 | 24 | size_t size = a.size(); | 75 | 24 | const A* __restrict a_pos = a.data(); | 76 | 24 | const B* __restrict b_pos = b.data(); | 77 | 24 | UInt8* __restrict c_pos = c.data(); | 78 | 24 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 62 | while (a_pos < a_end) { | 81 | 38 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 38 | ++a_pos; | 83 | 38 | ++b_pos; | 84 | 38 | ++c_pos; | 85 | 38 | } | 86 | 24 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 7 | while (a_pos < a_end) { | 81 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5 | ++a_pos; | 83 | 5 | ++b_pos; | 84 | 5 | ++c_pos; | 85 | 5 | } | 86 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 38 | PaddedPODArray<UInt8>& c) { | 74 | 38 | size_t size = a.size(); | 75 | 38 | const A* __restrict a_pos = a.data(); | 76 | 38 | const B* __restrict b_pos = b.data(); | 77 | 38 | UInt8* __restrict c_pos = c.data(); | 78 | 38 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 145 | while (a_pos < a_end) { | 81 | 107 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 107 | ++a_pos; | 83 | 107 | ++b_pos; | 84 | 107 | ++c_pos; | 85 | 107 | } | 86 | 38 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 72 | PaddedPODArray<UInt8>& c) { | 74 | 72 | size_t size = a.size(); | 75 | 72 | const A* __restrict a_pos = a.data(); | 76 | 72 | const B* __restrict b_pos = b.data(); | 77 | 72 | UInt8* __restrict c_pos = c.data(); | 78 | 72 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 196 | while (a_pos < a_end) { | 81 | 124 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 124 | ++a_pos; | 83 | 124 | ++b_pos; | 84 | 124 | ++c_pos; | 85 | 124 | } | 86 | 72 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
87 | | |
88 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
89 | 113k | PaddedPODArray<UInt8>& c) { |
90 | 113k | size_t size = a.size(); |
91 | 113k | const A* __restrict a_pos = a.data(); |
92 | 113k | UInt8* __restrict c_pos = c.data(); |
93 | 113k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 37.7M | while (a_pos < a_end) { |
96 | 37.6M | *c_pos = Op::apply(*a_pos, b); |
97 | 37.6M | ++a_pos; |
98 | 37.6M | ++c_pos; |
99 | 37.6M | } |
100 | 113k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 32 | PaddedPODArray<UInt8>& c) { | 90 | 32 | size_t size = a.size(); | 91 | 32 | const A* __restrict a_pos = a.data(); | 92 | 32 | UInt8* __restrict c_pos = c.data(); | 93 | 32 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 177 | while (a_pos < a_end) { | 96 | 145 | *c_pos = Op::apply(*a_pos, b); | 97 | 145 | ++a_pos; | 98 | 145 | ++c_pos; | 99 | 145 | } | 100 | 32 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 515 | PaddedPODArray<UInt8>& c) { | 90 | 515 | size_t size = a.size(); | 91 | 515 | const A* __restrict a_pos = a.data(); | 92 | 515 | UInt8* __restrict c_pos = c.data(); | 93 | 515 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 204k | while (a_pos < a_end) { | 96 | 204k | *c_pos = Op::apply(*a_pos, b); | 97 | 204k | ++a_pos; | 98 | 204k | ++c_pos; | 99 | 204k | } | 100 | 515 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 175 | PaddedPODArray<UInt8>& c) { | 90 | 175 | size_t size = a.size(); | 91 | 175 | const A* __restrict a_pos = a.data(); | 92 | 175 | UInt8* __restrict c_pos = c.data(); | 93 | 175 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 117k | while (a_pos < a_end) { | 96 | 117k | *c_pos = Op::apply(*a_pos, b); | 97 | 117k | ++a_pos; | 98 | 117k | ++c_pos; | 99 | 117k | } | 100 | 175 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 86 | PaddedPODArray<UInt8>& c) { | 90 | 86 | size_t size = a.size(); | 91 | 86 | const A* __restrict a_pos = a.data(); | 92 | 86 | UInt8* __restrict c_pos = c.data(); | 93 | 86 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 178 | while (a_pos < a_end) { | 96 | 92 | *c_pos = Op::apply(*a_pos, b); | 97 | 92 | ++a_pos; | 98 | 92 | ++c_pos; | 99 | 92 | } | 100 | 86 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 20 | while (a_pos < a_end) { | 96 | 10 | *c_pos = Op::apply(*a_pos, b); | 97 | 10 | ++a_pos; | 98 | 10 | ++c_pos; | 99 | 10 | } | 100 | 10 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.02k | PaddedPODArray<UInt8>& c) { | 90 | 6.02k | size_t size = a.size(); | 91 | 6.02k | const A* __restrict a_pos = a.data(); | 92 | 6.02k | UInt8* __restrict c_pos = c.data(); | 93 | 6.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.27M | while (a_pos < a_end) { | 96 | 9.26M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.26M | ++a_pos; | 98 | 9.26M | ++c_pos; | 99 | 9.26M | } | 100 | 6.02k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 305 | PaddedPODArray<UInt8>& c) { | 90 | 305 | size_t size = a.size(); | 91 | 305 | const A* __restrict a_pos = a.data(); | 92 | 305 | UInt8* __restrict c_pos = c.data(); | 93 | 305 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 305 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.19k | PaddedPODArray<UInt8>& c) { | 90 | 2.19k | size_t size = a.size(); | 91 | 2.19k | const A* __restrict a_pos = a.data(); | 92 | 2.19k | UInt8* __restrict c_pos = c.data(); | 93 | 2.19k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 202k | while (a_pos < a_end) { | 96 | 200k | *c_pos = Op::apply(*a_pos, b); | 97 | 200k | ++a_pos; | 98 | 200k | ++c_pos; | 99 | 200k | } | 100 | 2.19k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7.42k | PaddedPODArray<UInt8>& c) { | 90 | 7.42k | size_t size = a.size(); | 91 | 7.42k | const A* __restrict a_pos = a.data(); | 92 | 7.42k | UInt8* __restrict c_pos = c.data(); | 93 | 7.42k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.20M | while (a_pos < a_end) { | 96 | 5.20M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.20M | ++a_pos; | 98 | 5.20M | ++c_pos; | 99 | 5.20M | } | 100 | 7.42k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 45 | PaddedPODArray<UInt8>& c) { | 90 | 45 | size_t size = a.size(); | 91 | 45 | const A* __restrict a_pos = a.data(); | 92 | 45 | UInt8* __restrict c_pos = c.data(); | 93 | 45 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 100k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 45 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7 | PaddedPODArray<UInt8>& c) { | 90 | 7 | size_t size = a.size(); | 91 | 7 | const A* __restrict a_pos = a.data(); | 92 | 7 | UInt8* __restrict c_pos = c.data(); | 93 | 7 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 21 | while (a_pos < a_end) { | 96 | 14 | *c_pos = Op::apply(*a_pos, b); | 97 | 14 | ++a_pos; | 98 | 14 | ++c_pos; | 99 | 14 | } | 100 | 7 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 4 | *c_pos = Op::apply(*a_pos, b); | 97 | 4 | ++a_pos; | 98 | 4 | ++c_pos; | 99 | 4 | } | 100 | 4 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.02k | PaddedPODArray<UInt8>& c) { | 90 | 2.02k | size_t size = a.size(); | 91 | 2.02k | const A* __restrict a_pos = a.data(); | 92 | 2.02k | UInt8* __restrict c_pos = c.data(); | 93 | 2.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 68.5k | while (a_pos < a_end) { | 96 | 66.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 66.5k | ++a_pos; | 98 | 66.5k | ++c_pos; | 99 | 66.5k | } | 100 | 2.02k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 597 | PaddedPODArray<UInt8>& c) { | 90 | 597 | size_t size = a.size(); | 91 | 597 | const A* __restrict a_pos = a.data(); | 92 | 597 | UInt8* __restrict c_pos = c.data(); | 93 | 597 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 713k | while (a_pos < a_end) { | 96 | 712k | *c_pos = Op::apply(*a_pos, b); | 97 | 712k | ++a_pos; | 98 | 712k | ++c_pos; | 99 | 712k | } | 100 | 597 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 82 | while (a_pos < a_end) { | 96 | 51 | *c_pos = Op::apply(*a_pos, b); | 97 | 51 | ++a_pos; | 98 | 51 | ++c_pos; | 99 | 51 | } | 100 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_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 | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78 | while (a_pos < a_end) { | 96 | 50 | *c_pos = Op::apply(*a_pos, b); | 97 | 50 | ++a_pos; | 98 | 50 | ++c_pos; | 99 | 50 | } | 100 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 197 | PaddedPODArray<UInt8>& c) { | 90 | 197 | size_t size = a.size(); | 91 | 197 | const A* __restrict a_pos = a.data(); | 92 | 197 | UInt8* __restrict c_pos = c.data(); | 93 | 197 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.90k | while (a_pos < a_end) { | 96 | 1.70k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.70k | ++a_pos; | 98 | 1.70k | ++c_pos; | 99 | 1.70k | } | 100 | 197 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 664 | PaddedPODArray<UInt8>& c) { | 90 | 664 | size_t size = a.size(); | 91 | 664 | const A* __restrict a_pos = a.data(); | 92 | 664 | UInt8* __restrict c_pos = c.data(); | 93 | 664 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.84k | while (a_pos < a_end) { | 96 | 5.17k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.17k | ++a_pos; | 98 | 5.17k | ++c_pos; | 99 | 5.17k | } | 100 | 664 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 70 | while (a_pos < a_end) { | 96 | 42 | *c_pos = Op::apply(*a_pos, b); | 97 | 42 | ++a_pos; | 98 | 42 | ++c_pos; | 99 | 42 | } | 100 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 40 | PaddedPODArray<UInt8>& c) { | 90 | 40 | size_t size = a.size(); | 91 | 40 | const A* __restrict a_pos = a.data(); | 92 | 40 | UInt8* __restrict c_pos = c.data(); | 93 | 40 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 282 | while (a_pos < a_end) { | 96 | 242 | *c_pos = Op::apply(*a_pos, b); | 97 | 242 | ++a_pos; | 98 | 242 | ++c_pos; | 99 | 242 | } | 100 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 149 | while (a_pos < a_end) { | 96 | 108 | *c_pos = Op::apply(*a_pos, b); | 97 | 108 | ++a_pos; | 98 | 108 | ++c_pos; | 99 | 108 | } | 100 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 370 | PaddedPODArray<UInt8>& c) { | 90 | 370 | size_t size = a.size(); | 91 | 370 | const A* __restrict a_pos = a.data(); | 92 | 370 | UInt8* __restrict c_pos = c.data(); | 93 | 370 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.34M | while (a_pos < a_end) { | 96 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.34M | ++a_pos; | 98 | 1.34M | ++c_pos; | 99 | 1.34M | } | 100 | 370 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 5 | *c_pos = Op::apply(*a_pos, b); | 97 | 5 | ++a_pos; | 98 | 5 | ++c_pos; | 99 | 5 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 59 | PaddedPODArray<UInt8>& c) { | 90 | 59 | size_t size = a.size(); | 91 | 59 | const A* __restrict a_pos = a.data(); | 92 | 59 | UInt8* __restrict c_pos = c.data(); | 93 | 59 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 263 | while (a_pos < a_end) { | 96 | 204 | *c_pos = Op::apply(*a_pos, b); | 97 | 204 | ++a_pos; | 98 | 204 | ++c_pos; | 99 | 204 | } | 100 | 59 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 34 | PaddedPODArray<UInt8>& c) { | 90 | 34 | size_t size = a.size(); | 91 | 34 | const A* __restrict a_pos = a.data(); | 92 | 34 | UInt8* __restrict c_pos = c.data(); | 93 | 34 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 74 | while (a_pos < a_end) { | 96 | 40 | *c_pos = Op::apply(*a_pos, b); | 97 | 40 | ++a_pos; | 98 | 40 | ++c_pos; | 99 | 40 | } | 100 | 34 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 39 | PaddedPODArray<UInt8>& c) { | 90 | 39 | size_t size = a.size(); | 91 | 39 | const A* __restrict a_pos = a.data(); | 92 | 39 | UInt8* __restrict c_pos = c.data(); | 93 | 39 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 84 | while (a_pos < a_end) { | 96 | 45 | *c_pos = Op::apply(*a_pos, b); | 97 | 45 | ++a_pos; | 98 | 45 | ++c_pos; | 99 | 45 | } | 100 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 7 | *c_pos = Op::apply(*a_pos, b); | 97 | 7 | ++a_pos; | 98 | 7 | ++c_pos; | 99 | 7 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.54k | PaddedPODArray<UInt8>& c) { | 90 | 1.54k | size_t size = a.size(); | 91 | 1.54k | const A* __restrict a_pos = a.data(); | 92 | 1.54k | UInt8* __restrict c_pos = c.data(); | 93 | 1.54k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 13.8k | while (a_pos < a_end) { | 96 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 97 | 12.2k | ++a_pos; | 98 | 12.2k | ++c_pos; | 99 | 12.2k | } | 100 | 1.54k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.18k | PaddedPODArray<UInt8>& c) { | 90 | 2.18k | size_t size = a.size(); | 91 | 2.18k | const A* __restrict a_pos = a.data(); | 92 | 2.18k | UInt8* __restrict c_pos = c.data(); | 93 | 2.18k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.96k | while (a_pos < a_end) { | 96 | 3.77k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.77k | ++a_pos; | 98 | 3.77k | ++c_pos; | 99 | 3.77k | } | 100 | 2.18k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.00k | PaddedPODArray<UInt8>& c) { | 90 | 2.00k | size_t size = a.size(); | 91 | 2.00k | const A* __restrict a_pos = a.data(); | 92 | 2.00k | UInt8* __restrict c_pos = c.data(); | 93 | 2.00k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.37k | while (a_pos < a_end) { | 96 | 5.36k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.36k | ++a_pos; | 98 | 5.36k | ++c_pos; | 99 | 5.36k | } | 100 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 254 | PaddedPODArray<UInt8>& c) { | 90 | 254 | size_t size = a.size(); | 91 | 254 | const A* __restrict a_pos = a.data(); | 92 | 254 | UInt8* __restrict c_pos = c.data(); | 93 | 254 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.19k | while (a_pos < a_end) { | 96 | 936 | *c_pos = Op::apply(*a_pos, b); | 97 | 936 | ++a_pos; | 98 | 936 | ++c_pos; | 99 | 936 | } | 100 | 254 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.43k | PaddedPODArray<UInt8>& c) { | 90 | 5.43k | size_t size = a.size(); | 91 | 5.43k | const A* __restrict a_pos = a.data(); | 92 | 5.43k | UInt8* __restrict c_pos = c.data(); | 93 | 5.43k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 960k | while (a_pos < a_end) { | 96 | 955k | *c_pos = Op::apply(*a_pos, b); | 97 | 955k | ++a_pos; | 98 | 955k | ++c_pos; | 99 | 955k | } | 100 | 5.43k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 63.4k | PaddedPODArray<UInt8>& c) { | 90 | 63.4k | size_t size = a.size(); | 91 | 63.4k | const A* __restrict a_pos = a.data(); | 92 | 63.4k | UInt8* __restrict c_pos = c.data(); | 93 | 63.4k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.34M | while (a_pos < a_end) { | 96 | 5.28M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.28M | ++a_pos; | 98 | 5.28M | ++c_pos; | 99 | 5.28M | } | 100 | 63.4k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.97k | PaddedPODArray<UInt8>& c) { | 90 | 1.97k | size_t size = a.size(); | 91 | 1.97k | const A* __restrict a_pos = a.data(); | 92 | 1.97k | UInt8* __restrict c_pos = c.data(); | 93 | 1.97k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 99.1k | while (a_pos < a_end) { | 96 | 97.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.1k | ++a_pos; | 98 | 97.1k | ++c_pos; | 99 | 97.1k | } | 100 | 1.97k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.09k | PaddedPODArray<UInt8>& c) { | 90 | 1.09k | size_t size = a.size(); | 91 | 1.09k | const A* __restrict a_pos = a.data(); | 92 | 1.09k | UInt8* __restrict c_pos = c.data(); | 93 | 1.09k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 32.8k | while (a_pos < a_end) { | 96 | 31.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 31.7k | ++a_pos; | 98 | 31.7k | ++c_pos; | 99 | 31.7k | } | 100 | 1.09k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 271 | PaddedPODArray<UInt8>& c) { | 90 | 271 | size_t size = a.size(); | 91 | 271 | const A* __restrict a_pos = a.data(); | 92 | 271 | UInt8* __restrict c_pos = c.data(); | 93 | 271 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.90k | while (a_pos < a_end) { | 96 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.63k | ++a_pos; | 98 | 1.63k | ++c_pos; | 99 | 1.63k | } | 100 | 271 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 87 | PaddedPODArray<UInt8>& c) { | 90 | 87 | size_t size = a.size(); | 91 | 87 | const A* __restrict a_pos = a.data(); | 92 | 87 | UInt8* __restrict c_pos = c.data(); | 93 | 87 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86.2k | while (a_pos < a_end) { | 96 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 86.1k | ++a_pos; | 98 | 86.1k | ++c_pos; | 99 | 86.1k | } | 100 | 87 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 31 | while (a_pos < a_end) { | 96 | 28 | *c_pos = Op::apply(*a_pos, b); | 97 | 28 | ++a_pos; | 98 | 28 | ++c_pos; | 99 | 28 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 22 | while (a_pos < a_end) { | 96 | 20 | *c_pos = Op::apply(*a_pos, b); | 97 | 20 | ++a_pos; | 98 | 20 | ++c_pos; | 99 | 20 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 507 | PaddedPODArray<UInt8>& c) { | 90 | 507 | size_t size = a.size(); | 91 | 507 | const A* __restrict a_pos = a.data(); | 92 | 507 | UInt8* __restrict c_pos = c.data(); | 93 | 507 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.12k | while (a_pos < a_end) { | 96 | 3.61k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.61k | ++a_pos; | 98 | 3.61k | ++c_pos; | 99 | 3.61k | } | 100 | 507 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 347 | PaddedPODArray<UInt8>& c) { | 90 | 347 | size_t size = a.size(); | 91 | 347 | const A* __restrict a_pos = a.data(); | 92 | 347 | UInt8* __restrict c_pos = c.data(); | 93 | 347 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.02k | while (a_pos < a_end) { | 96 | 6.67k | *c_pos = Op::apply(*a_pos, b); | 97 | 6.67k | ++a_pos; | 98 | 6.67k | ++c_pos; | 99 | 6.67k | } | 100 | 347 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 305 | PaddedPODArray<UInt8>& c) { | 90 | 305 | size_t size = a.size(); | 91 | 305 | const A* __restrict a_pos = a.data(); | 92 | 305 | UInt8* __restrict c_pos = c.data(); | 93 | 305 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.92k | while (a_pos < a_end) { | 96 | 2.61k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.61k | ++a_pos; | 98 | 2.61k | ++c_pos; | 99 | 2.61k | } | 100 | 305 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 514 | PaddedPODArray<UInt8>& c) { | 90 | 514 | size_t size = a.size(); | 91 | 514 | const A* __restrict a_pos = a.data(); | 92 | 514 | UInt8* __restrict c_pos = c.data(); | 93 | 514 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.46k | while (a_pos < a_end) { | 96 | 6.95k | *c_pos = Op::apply(*a_pos, b); | 97 | 6.95k | ++a_pos; | 98 | 6.95k | ++c_pos; | 99 | 6.95k | } | 100 | 514 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.27k | PaddedPODArray<UInt8>& c) { | 90 | 1.27k | size_t size = a.size(); | 91 | 1.27k | const A* __restrict a_pos = a.data(); | 92 | 1.27k | UInt8* __restrict c_pos = c.data(); | 93 | 1.27k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 284k | while (a_pos < a_end) { | 96 | 283k | *c_pos = Op::apply(*a_pos, b); | 97 | 283k | ++a_pos; | 98 | 283k | ++c_pos; | 99 | 283k | } | 100 | 1.27k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 22 | PaddedPODArray<UInt8>& c) { | 90 | 22 | size_t size = a.size(); | 91 | 22 | const A* __restrict a_pos = a.data(); | 92 | 22 | UInt8* __restrict c_pos = c.data(); | 93 | 22 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 90.9k | while (a_pos < a_end) { | 96 | 90.9k | *c_pos = Op::apply(*a_pos, b); | 97 | 90.9k | ++a_pos; | 98 | 90.9k | ++c_pos; | 99 | 90.9k | } | 100 | 22 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 13 | PaddedPODArray<UInt8>& c) { | 90 | 13 | size_t size = a.size(); | 91 | 13 | const A* __restrict a_pos = a.data(); | 92 | 13 | UInt8* __restrict c_pos = c.data(); | 93 | 13 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 30.2k | while (a_pos < a_end) { | 96 | 30.2k | *c_pos = Op::apply(*a_pos, b); | 97 | 30.2k | ++a_pos; | 98 | 30.2k | ++c_pos; | 99 | 30.2k | } | 100 | 13 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 458 | PaddedPODArray<UInt8>& c) { | 90 | 458 | size_t size = a.size(); | 91 | 458 | const A* __restrict a_pos = a.data(); | 92 | 458 | UInt8* __restrict c_pos = c.data(); | 93 | 458 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.46M | while (a_pos < a_end) { | 96 | 1.46M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.46M | ++a_pos; | 98 | 1.46M | ++c_pos; | 99 | 1.46M | } | 100 | 458 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 154 | PaddedPODArray<UInt8>& c) { | 90 | 154 | size_t size = a.size(); | 91 | 154 | const A* __restrict a_pos = a.data(); | 92 | 154 | UInt8* __restrict c_pos = c.data(); | 93 | 154 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 615k | while (a_pos < a_end) { | 96 | 615k | *c_pos = Op::apply(*a_pos, b); | 97 | 615k | ++a_pos; | 98 | 615k | ++c_pos; | 99 | 615k | } | 100 | 154 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 120 | PaddedPODArray<UInt8>& c) { | 90 | 120 | size_t size = a.size(); | 91 | 120 | const A* __restrict a_pos = a.data(); | 92 | 120 | UInt8* __restrict c_pos = c.data(); | 93 | 120 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 437 | while (a_pos < a_end) { | 96 | 317 | *c_pos = Op::apply(*a_pos, b); | 97 | 317 | ++a_pos; | 98 | 317 | ++c_pos; | 99 | 317 | } | 100 | 120 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 72 | PaddedPODArray<UInt8>& c) { | 90 | 72 | size_t size = a.size(); | 91 | 72 | const A* __restrict a_pos = a.data(); | 92 | 72 | UInt8* __restrict c_pos = c.data(); | 93 | 72 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 307 | while (a_pos < a_end) { | 96 | 235 | *c_pos = Op::apply(*a_pos, b); | 97 | 235 | ++a_pos; | 98 | 235 | ++c_pos; | 99 | 235 | } | 100 | 72 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 43 | PaddedPODArray<UInt8>& c) { | 90 | 43 | size_t size = a.size(); | 91 | 43 | const A* __restrict a_pos = a.data(); | 92 | 43 | UInt8* __restrict c_pos = c.data(); | 93 | 43 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101 | while (a_pos < a_end) { | 96 | 58 | *c_pos = Op::apply(*a_pos, b); | 97 | 58 | ++a_pos; | 98 | 58 | ++c_pos; | 99 | 58 | } | 100 | 43 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 35 | PaddedPODArray<UInt8>& c) { | 90 | 35 | size_t size = a.size(); | 91 | 35 | const A* __restrict a_pos = a.data(); | 92 | 35 | UInt8* __restrict c_pos = c.data(); | 93 | 35 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 79 | while (a_pos < a_end) { | 96 | 44 | *c_pos = Op::apply(*a_pos, b); | 97 | 44 | ++a_pos; | 98 | 44 | ++c_pos; | 99 | 44 | } | 100 | 35 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3 | while (a_pos < a_end) { | 96 | 2 | *c_pos = Op::apply(*a_pos, b); | 97 | 2 | ++a_pos; | 98 | 2 | ++c_pos; | 99 | 2 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 48 | PaddedPODArray<UInt8>& c) { | 90 | 48 | size_t size = a.size(); | 91 | 48 | const A* __restrict a_pos = a.data(); | 92 | 48 | UInt8* __restrict c_pos = c.data(); | 93 | 48 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 133k | while (a_pos < a_end) { | 96 | 133k | *c_pos = Op::apply(*a_pos, b); | 97 | 133k | ++a_pos; | 98 | 133k | ++c_pos; | 99 | 133k | } | 100 | 48 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 44 | PaddedPODArray<UInt8>& c) { | 90 | 44 | size_t size = a.size(); | 91 | 44 | const A* __restrict a_pos = a.data(); | 92 | 44 | UInt8* __restrict c_pos = c.data(); | 93 | 44 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 51.3k | while (a_pos < a_end) { | 96 | 51.3k | *c_pos = Op::apply(*a_pos, b); | 97 | 51.3k | ++a_pos; | 98 | 51.3k | ++c_pos; | 99 | 51.3k | } | 100 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 54 | PaddedPODArray<UInt8>& c) { | 90 | 54 | size_t size = a.size(); | 91 | 54 | const A* __restrict a_pos = a.data(); | 92 | 54 | UInt8* __restrict c_pos = c.data(); | 93 | 54 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 117k | while (a_pos < a_end) { | 96 | 117k | *c_pos = Op::apply(*a_pos, b); | 97 | 117k | ++a_pos; | 98 | 117k | ++c_pos; | 99 | 117k | } | 100 | 54 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 50 | PaddedPODArray<UInt8>& c) { | 90 | 50 | size_t size = a.size(); | 91 | 50 | const A* __restrict a_pos = a.data(); | 92 | 50 | UInt8* __restrict c_pos = c.data(); | 93 | 50 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 18.5k | while (a_pos < a_end) { | 96 | 18.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 18.4k | ++a_pos; | 98 | 18.4k | ++c_pos; | 99 | 18.4k | } | 100 | 50 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.76k | PaddedPODArray<UInt8>& c) { | 90 | 1.76k | size_t size = a.size(); | 91 | 1.76k | const A* __restrict a_pos = a.data(); | 92 | 1.76k | UInt8* __restrict c_pos = c.data(); | 93 | 1.76k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.18M | while (a_pos < a_end) { | 96 | 3.17M | *c_pos = Op::apply(*a_pos, b); | 97 | 3.17M | ++a_pos; | 98 | 3.17M | ++c_pos; | 99 | 3.17M | } | 100 | 1.76k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.38k | PaddedPODArray<UInt8>& c) { | 90 | 6.38k | size_t size = a.size(); | 91 | 6.38k | const A* __restrict a_pos = a.data(); | 92 | 6.38k | UInt8* __restrict c_pos = c.data(); | 93 | 6.38k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.04M | while (a_pos < a_end) { | 96 | 7.04M | *c_pos = Op::apply(*a_pos, b); | 97 | 7.04M | ++a_pos; | 98 | 7.04M | ++c_pos; | 99 | 7.04M | } | 100 | 6.38k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 785 | PaddedPODArray<UInt8>& c) { | 90 | 785 | size_t size = a.size(); | 91 | 785 | const A* __restrict a_pos = a.data(); | 92 | 785 | UInt8* __restrict c_pos = c.data(); | 93 | 785 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.98k | while (a_pos < a_end) { | 96 | 3.20k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.20k | ++a_pos; | 98 | 3.20k | ++c_pos; | 99 | 3.20k | } | 100 | 785 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 601 | PaddedPODArray<UInt8>& c) { | 90 | 601 | size_t size = a.size(); | 91 | 601 | const A* __restrict a_pos = a.data(); | 92 | 601 | UInt8* __restrict c_pos = c.data(); | 93 | 601 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 46.2k | while (a_pos < a_end) { | 96 | 45.6k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.6k | ++a_pos; | 98 | 45.6k | ++c_pos; | 99 | 45.6k | } | 100 | 601 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 14 | PaddedPODArray<UInt8>& c) { | 90 | 14 | size_t size = a.size(); | 91 | 14 | const A* __restrict a_pos = a.data(); | 92 | 14 | UInt8* __restrict c_pos = c.data(); | 93 | 14 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 25.7k | while (a_pos < a_end) { | 96 | 25.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 25.7k | ++a_pos; | 98 | 25.7k | ++c_pos; | 99 | 25.7k | } | 100 | 14 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 36 | PaddedPODArray<UInt8>& c) { | 90 | 36 | size_t size = a.size(); | 91 | 36 | const A* __restrict a_pos = a.data(); | 92 | 36 | UInt8* __restrict c_pos = c.data(); | 93 | 36 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 103k | while (a_pos < a_end) { | 96 | 103k | *c_pos = Op::apply(*a_pos, b); | 97 | 103k | ++a_pos; | 98 | 103k | ++c_pos; | 99 | 103k | } | 100 | 36 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 467 | PaddedPODArray<UInt8>& c) { | 90 | 467 | size_t size = a.size(); | 91 | 467 | const A* __restrict a_pos = a.data(); | 92 | 467 | UInt8* __restrict c_pos = c.data(); | 93 | 467 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.1k | ++a_pos; | 98 | 49.1k | ++c_pos; | 99 | 49.1k | } | 100 | 467 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 311 | PaddedPODArray<UInt8>& c) { | 90 | 311 | size_t size = a.size(); | 91 | 311 | const A* __restrict a_pos = a.data(); | 92 | 311 | UInt8* __restrict c_pos = c.data(); | 93 | 311 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.39k | while (a_pos < a_end) { | 96 | 3.08k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.08k | ++a_pos; | 98 | 3.08k | ++c_pos; | 99 | 3.08k | } | 100 | 311 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 10 | while (a_pos < a_end) { | 96 | 6 | *c_pos = Op::apply(*a_pos, b); | 97 | 6 | ++a_pos; | 98 | 6 | ++c_pos; | 99 | 6 | } | 100 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 122 | PaddedPODArray<UInt8>& c) { | 90 | 122 | size_t size = a.size(); | 91 | 122 | const A* __restrict a_pos = a.data(); | 92 | 122 | UInt8* __restrict c_pos = c.data(); | 93 | 122 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 122 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 113 | PaddedPODArray<UInt8>& c) { | 90 | 113 | size_t size = a.size(); | 91 | 113 | const A* __restrict a_pos = a.data(); | 92 | 113 | UInt8* __restrict c_pos = c.data(); | 93 | 113 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 113 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 67.1k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 67.1k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 67.1k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 102 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 300 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 300 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 300 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 1.19k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 1.19k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 1.19k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 54 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 614 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 614 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 614 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 252 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 252 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 252 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 240 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 62.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 62.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 62.5k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 529 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 529 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 529 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 45 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 45 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 45 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 264 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 193 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 193 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 193 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 80 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 70 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 70 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 70 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 584 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 584 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 584 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 20 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 63 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
112 | 43 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
113 | 43 | } |
114 | 20 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 13 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 39 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 26 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 26 | } | 114 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 7 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 6 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 13 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 9 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 9 | } | 114 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
115 | | |
116 | 141 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 141 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 420k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 420k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 420k | } |
121 | 141 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 19 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 19 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 60 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 41 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 41 | } | 121 | 19 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 54 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 54 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 219k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 219k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 219k | } | 121 | 54 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 44 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 44 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 200k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 200k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 200k | } | 121 | 44 | } |
|
122 | | |
123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
125 | 1 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); | 125 | 1 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
126 | | }; |
127 | | |
128 | | template <typename Op> |
129 | | struct StringComparisonImpl { |
130 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
131 | | const ColumnString::Offsets& a_offsets, |
132 | | const ColumnString::Chars& b_data, |
133 | | const ColumnString::Offsets& b_offsets, |
134 | 435 | PaddedPODArray<UInt8>& c) { |
135 | 435 | size_t size = a_offsets.size(); |
136 | 435 | ColumnString::Offset prev_a_offset = 0; |
137 | 435 | ColumnString::Offset prev_b_offset = 0; |
138 | 435 | const auto* a_pos = a_data.data(); |
139 | 435 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.60k | for (size_t i = 0; i < size; ++i) { |
142 | 1.17k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.17k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.17k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.17k | 0); |
146 | | |
147 | 1.17k | prev_a_offset = a_offsets[i]; |
148 | 1.17k | prev_b_offset = b_offsets[i]; |
149 | 1.17k | } |
150 | 435 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 2 | PaddedPODArray<UInt8>& c) { | 135 | 2 | size_t size = a_offsets.size(); | 136 | 2 | ColumnString::Offset prev_a_offset = 0; | 137 | 2 | ColumnString::Offset prev_b_offset = 0; | 138 | 2 | const auto* a_pos = a_data.data(); | 139 | 2 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 49 | for (size_t i = 0; i < size; ++i) { | 142 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 47 | 0); | 146 | | | 147 | 47 | prev_a_offset = a_offsets[i]; | 148 | 47 | prev_b_offset = b_offsets[i]; | 149 | 47 | } | 150 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 36 | PaddedPODArray<UInt8>& c) { | 135 | 36 | size_t size = a_offsets.size(); | 136 | 36 | ColumnString::Offset prev_a_offset = 0; | 137 | 36 | ColumnString::Offset prev_b_offset = 0; | 138 | 36 | const auto* a_pos = a_data.data(); | 139 | 36 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 230 | for (size_t i = 0; i < size; ++i) { | 142 | 194 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 194 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 194 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 194 | 0); | 146 | | | 147 | 194 | prev_a_offset = a_offsets[i]; | 148 | 194 | prev_b_offset = b_offsets[i]; | 149 | 194 | } | 150 | 36 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 397 | PaddedPODArray<UInt8>& c) { | 135 | 397 | size_t size = a_offsets.size(); | 136 | 397 | ColumnString::Offset prev_a_offset = 0; | 137 | 397 | ColumnString::Offset prev_b_offset = 0; | 138 | 397 | const auto* a_pos = a_data.data(); | 139 | 397 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.32k | for (size_t i = 0; i < size; ++i) { | 142 | 929 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 929 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 929 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 929 | 0); | 146 | | | 147 | 929 | prev_a_offset = a_offsets[i]; | 148 | 929 | prev_b_offset = b_offsets[i]; | 149 | 929 | } | 150 | 397 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
151 | | |
152 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
153 | | const ColumnString::Offsets& a_offsets, |
154 | | const ColumnString::Chars& b_data, |
155 | | ColumnString::Offset b_size, |
156 | 1.07k | PaddedPODArray<UInt8>& c) { |
157 | 1.07k | size_t size = a_offsets.size(); |
158 | 1.07k | ColumnString::Offset prev_a_offset = 0; |
159 | 1.07k | const auto* a_pos = a_data.data(); |
160 | 1.07k | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.34M | for (size_t i = 0; i < size; ++i) { |
163 | 1.34M | c[i] = Op::apply( |
164 | 1.34M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.34M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.34M | 0); |
167 | | |
168 | 1.34M | prev_a_offset = a_offsets[i]; |
169 | 1.34M | } |
170 | 1.07k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 226 | PaddedPODArray<UInt8>& c) { | 157 | 226 | size_t size = a_offsets.size(); | 158 | 226 | ColumnString::Offset prev_a_offset = 0; | 159 | 226 | const auto* a_pos = a_data.data(); | 160 | 226 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 358k | for (size_t i = 0; i < size; ++i) { | 163 | 358k | c[i] = Op::apply( | 164 | 358k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 358k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 358k | 0); | 167 | | | 168 | 358k | prev_a_offset = a_offsets[i]; | 169 | 358k | } | 170 | 226 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 127 | PaddedPODArray<UInt8>& c) { | 157 | 127 | size_t size = a_offsets.size(); | 158 | 127 | ColumnString::Offset prev_a_offset = 0; | 159 | 127 | const auto* a_pos = a_data.data(); | 160 | 127 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 105k | for (size_t i = 0; i < size; ++i) { | 163 | 105k | c[i] = Op::apply( | 164 | 105k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 105k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 105k | 0); | 167 | | | 168 | 105k | prev_a_offset = a_offsets[i]; | 169 | 105k | } | 170 | 127 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 305 | PaddedPODArray<UInt8>& c) { | 157 | 305 | size_t size = a_offsets.size(); | 158 | 305 | ColumnString::Offset prev_a_offset = 0; | 159 | 305 | const auto* a_pos = a_data.data(); | 160 | 305 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 410k | for (size_t i = 0; i < size; ++i) { | 163 | 409k | c[i] = Op::apply( | 164 | 409k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 409k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 409k | 0); | 167 | | | 168 | 409k | prev_a_offset = a_offsets[i]; | 169 | 409k | } | 170 | 305 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 419 | PaddedPODArray<UInt8>& c) { | 157 | 419 | size_t size = a_offsets.size(); | 158 | 419 | ColumnString::Offset prev_a_offset = 0; | 159 | 419 | const auto* a_pos = a_data.data(); | 160 | 419 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 475k | for (size_t i = 0; i < size; ++i) { | 163 | 474k | c[i] = Op::apply( | 164 | 474k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 474k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 474k | 0); | 167 | | | 168 | 474k | prev_a_offset = a_offsets[i]; | 169 | 474k | } | 170 | 419 | } |
|
171 | | |
172 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
173 | | ColumnString::Offset a_size, |
174 | | const ColumnString::Chars& b_data, |
175 | | const ColumnString::Offsets& b_offsets, |
176 | 62 | PaddedPODArray<UInt8>& c) { |
177 | 62 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 62 | a_data, a_size, c); |
179 | 62 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 56 | PaddedPODArray<UInt8>& c) { | 177 | 56 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 56 | a_data, a_size, c); | 179 | 56 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 6 | PaddedPODArray<UInt8>& c) { | 177 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 6 | a_data, a_size, c); | 179 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
180 | | }; |
181 | | |
182 | | template <bool positive> |
183 | | struct StringEqualsImpl { |
184 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
185 | | const ColumnString::Offsets& a_offsets, |
186 | | const ColumnString::Chars& b_data, |
187 | | const ColumnString::Offsets& b_offsets, |
188 | 444 | PaddedPODArray<UInt8>& c) { |
189 | 444 | size_t size = a_offsets.size(); |
190 | 444 | ColumnString::Offset prev_a_offset = 0; |
191 | 444 | ColumnString::Offset prev_b_offset = 0; |
192 | 444 | const auto* a_pos = a_data.data(); |
193 | 444 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 1.38k | for (size_t i = 0; i < size; ++i) { |
196 | 945 | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 945 | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 945 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 945 | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 945 | prev_a_offset = a_offsets[i]; |
203 | 945 | prev_b_offset = b_offsets[i]; |
204 | 945 | } |
205 | 444 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 434 | PaddedPODArray<UInt8>& c) { | 189 | 434 | size_t size = a_offsets.size(); | 190 | 434 | ColumnString::Offset prev_a_offset = 0; | 191 | 434 | ColumnString::Offset prev_b_offset = 0; | 192 | 434 | const auto* a_pos = a_data.data(); | 193 | 434 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 1.35k | for (size_t i = 0; i < size; ++i) { | 196 | 924 | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 924 | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 924 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 924 | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 924 | prev_a_offset = a_offsets[i]; | 203 | 924 | prev_b_offset = b_offsets[i]; | 204 | 924 | } | 205 | 434 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 10 | PaddedPODArray<UInt8>& c) { | 189 | 10 | size_t size = a_offsets.size(); | 190 | 10 | ColumnString::Offset prev_a_offset = 0; | 191 | 10 | ColumnString::Offset prev_b_offset = 0; | 192 | 10 | const auto* a_pos = a_data.data(); | 193 | 10 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 31 | for (size_t i = 0; i < size; ++i) { | 196 | 21 | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 21 | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 21 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 21 | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 21 | prev_a_offset = a_offsets[i]; | 203 | 21 | prev_b_offset = b_offsets[i]; | 204 | 21 | } | 205 | 10 | } |
|
206 | | |
207 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
208 | | const ColumnString::Offsets& a_offsets, |
209 | | const ColumnString::Chars& b_data, |
210 | | ColumnString::Offset b_size, |
211 | 20.6k | PaddedPODArray<UInt8>& c) { |
212 | 20.6k | size_t size = a_offsets.size(); |
213 | 20.6k | if (b_size == 0) { |
214 | 1 | auto* __restrict data = c.data(); |
215 | 1 | auto* __restrict offsets = a_offsets.data(); |
216 | | |
217 | 1 | ColumnString::Offset prev_a_offset = 0; |
218 | 4 | for (size_t i = 0; i < size; ++i) { |
219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
220 | 3 | prev_a_offset = offsets[i]; |
221 | 3 | } |
222 | 20.6k | } else { |
223 | 20.6k | ColumnString::Offset prev_a_offset = 0; |
224 | 20.6k | const auto* a_pos = a_data.data(); |
225 | 20.6k | const auto* b_pos = b_data.data(); |
226 | 9.43M | for (size_t i = 0; i < size; ++i) { |
227 | 9.41M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.41M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.41M | b_pos, b_size); |
230 | 9.41M | prev_a_offset = a_offsets[i]; |
231 | 9.41M | } |
232 | 20.6k | } |
233 | 20.6k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 20.5k | PaddedPODArray<UInt8>& c) { | 212 | 20.5k | size_t size = a_offsets.size(); | 213 | 20.5k | if (b_size == 0) { | 214 | 0 | auto* __restrict data = c.data(); | 215 | 0 | auto* __restrict offsets = a_offsets.data(); | 216 | |
| 217 | 0 | ColumnString::Offset prev_a_offset = 0; | 218 | 0 | for (size_t i = 0; i < size; ++i) { | 219 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 0 | prev_a_offset = offsets[i]; | 221 | 0 | } | 222 | 20.5k | } else { | 223 | 20.5k | ColumnString::Offset prev_a_offset = 0; | 224 | 20.5k | const auto* a_pos = a_data.data(); | 225 | 20.5k | const auto* b_pos = b_data.data(); | 226 | 9.37M | for (size_t i = 0; i < size; ++i) { | 227 | 9.35M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.35M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.35M | b_pos, b_size); | 230 | 9.35M | prev_a_offset = a_offsets[i]; | 231 | 9.35M | } | 232 | 20.5k | } | 233 | 20.5k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 105 | PaddedPODArray<UInt8>& c) { | 212 | 105 | size_t size = a_offsets.size(); | 213 | 105 | if (b_size == 0) { | 214 | 1 | auto* __restrict data = c.data(); | 215 | 1 | auto* __restrict offsets = a_offsets.data(); | 216 | | | 217 | 1 | ColumnString::Offset prev_a_offset = 0; | 218 | 4 | for (size_t i = 0; i < size; ++i) { | 219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 3 | prev_a_offset = offsets[i]; | 221 | 3 | } | 222 | 104 | } else { | 223 | 104 | ColumnString::Offset prev_a_offset = 0; | 224 | 104 | const auto* a_pos = a_data.data(); | 225 | 104 | const auto* b_pos = b_data.data(); | 226 | 60.7k | for (size_t i = 0; i < size; ++i) { | 227 | 60.6k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 60.6k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 60.6k | b_pos, b_size); | 230 | 60.6k | prev_a_offset = a_offsets[i]; | 231 | 60.6k | } | 232 | 104 | } | 233 | 105 | } |
|
234 | | |
235 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
236 | | ColumnString::Offset a_size, |
237 | | const ColumnString::Chars& b_data, |
238 | | const ColumnString::Offsets& b_offsets, |
239 | 16 | PaddedPODArray<UInt8>& c) { |
240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 16 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 16 | PaddedPODArray<UInt8>& c) { | 240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 16 | } |
Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
242 | | }; |
243 | | |
244 | | template <PrimitiveType PT> |
245 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
246 | | |
247 | | template <PrimitiveType PT> |
248 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
249 | | |
250 | | struct NameEquals { |
251 | | static constexpr auto name = "eq"; |
252 | | }; |
253 | | struct NameNotEquals { |
254 | | static constexpr auto name = "ne"; |
255 | | }; |
256 | | struct NameLess { |
257 | | static constexpr auto name = "lt"; |
258 | | }; |
259 | | struct NameGreater { |
260 | | static constexpr auto name = "gt"; |
261 | | }; |
262 | | struct NameLessOrEquals { |
263 | | static constexpr auto name = "le"; |
264 | | }; |
265 | | struct NameGreaterOrEquals { |
266 | | static constexpr auto name = "ge"; |
267 | | }; |
268 | | |
269 | | namespace comparison_zonemap_detail { |
270 | | enum class Op { |
271 | | EQ, |
272 | | NE, |
273 | | LT, |
274 | | LE, |
275 | | GT, |
276 | | GE, |
277 | | }; |
278 | | |
279 | 19 | inline Op symmetric_op(Op op) { |
280 | 19 | switch (op) { |
281 | 0 | case Op::EQ: |
282 | 0 | case Op::NE: |
283 | 0 | return op; |
284 | 11 | case Op::LT: |
285 | 11 | return Op::GT; |
286 | 6 | case Op::LE: |
287 | 6 | return Op::GE; |
288 | 0 | case Op::GT: |
289 | 0 | return Op::LT; |
290 | 2 | case Op::GE: |
291 | 2 | return Op::LE; |
292 | 19 | } |
293 | 0 | __builtin_unreachable(); |
294 | 19 | } |
295 | | |
296 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
297 | 3.25k | Op op) { |
298 | 3.25k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
299 | | |
300 | 3.25k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
301 | 3.25k | slot_literal->slot_type); |
302 | 3.25k | if (slot_type == nullptr) { |
303 | 293 | return unsupported_zonemap_filter(ctx); |
304 | 293 | } |
305 | 2.96k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
306 | 2.96k | if (zone_map_ptr == nullptr) { |
307 | 46 | return unsupported_zonemap_filter(ctx); |
308 | 46 | } |
309 | 2.92k | const auto& zone_map = *zone_map_ptr; |
310 | 2.92k | if (!zone_map.has_not_null) { |
311 | 56 | return ZoneMapFilterResult::kNoMatch; |
312 | 56 | } |
313 | 2.86k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
314 | 107 | return unsupported_zonemap_filter(ctx); |
315 | 107 | } |
316 | | |
317 | 2.75k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
318 | 2.75k | const auto& literal = slot_literal->literal; |
319 | 2.75k | const bool literal_is_nan = literal.is_nan(); |
320 | 2.75k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
321 | 2.76k | (effective_op == Op::NE && !literal_is_nan) || |
322 | 2.75k | (effective_op == Op::GT && !literal_is_nan) || |
323 | 2.75k | effective_op == Op::GE; |
324 | 2.75k | if (ctx.floating_nan_count_unknown(slot_literal->slot_index) && hidden_nan_can_match) { |
325 | | // Parquet bounds omit NaNs, so only operators that cannot match a hidden NaN may prune. |
326 | 52 | return unsupported_zonemap_filter(ctx); |
327 | 52 | } |
328 | 2.70k | switch (effective_op) { |
329 | 1.50k | case Op::EQ: |
330 | 1.50k | return literal < zone_map.min_value || zone_map.max_value < literal |
331 | 1.50k | ? ZoneMapFilterResult::kNoMatch |
332 | 1.50k | : ZoneMapFilterResult::kMayMatch; |
333 | 89 | case Op::NE: |
334 | 89 | return zone_map.min_value == literal && zone_map.max_value == literal |
335 | 89 | ? ZoneMapFilterResult::kNoMatch |
336 | 89 | : ZoneMapFilterResult::kMayMatch; |
337 | 371 | case Op::LT: |
338 | 371 | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
339 | 371 | : ZoneMapFilterResult::kMayMatch; |
340 | 242 | case Op::LE: |
341 | 242 | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
342 | 242 | : ZoneMapFilterResult::kMayMatch; |
343 | 258 | case Op::GT: |
344 | 258 | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
345 | 258 | : ZoneMapFilterResult::kMayMatch; |
346 | 269 | case Op::GE: |
347 | 269 | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
348 | 269 | : ZoneMapFilterResult::kMayMatch; |
349 | 2.70k | } |
350 | | |
351 | | // keep this to avoid compile failure with g++. |
352 | 0 | __builtin_unreachable(); |
353 | 2.70k | } |
354 | | |
355 | 32.4k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
356 | 32.4k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
357 | 32.4k | if (!slot_literal.has_value()) { |
358 | 18.4k | return false; |
359 | 18.4k | } |
360 | | |
361 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
362 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
363 | | // shape here before evaluate_zonemap_filter is called. |
364 | 13.9k | if (slot_literal->literal.is_null()) { |
365 | 4 | return false; |
366 | 4 | } |
367 | | |
368 | 13.9k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
369 | 13.9k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
370 | 13.9k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
371 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
372 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
373 | | // values without running expression casts, so conservatively skip this optimization. |
374 | 1 | return false; |
375 | 1 | } |
376 | | |
377 | 13.9k | return true; |
378 | 13.9k | } |
379 | | |
380 | 0 | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
381 | 0 | if (op != Op::EQ || !can_evaluate(arguments)) { |
382 | 0 | return false; |
383 | 0 | } |
384 | 0 | const auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 0 | DORIS_CHECK(slot_literal.has_value()); |
386 | 0 | // Bloom membership cannot disprove Doris NaN equality across different physical encodings. |
387 | 0 | return !slot_literal->literal.is_nan(); |
388 | 0 | } |
389 | | |
390 | 27 | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
391 | 27 | switch (op) { |
392 | 8 | case Op::EQ: |
393 | 8 | return value == literal; |
394 | 0 | case Op::NE: |
395 | 0 | return value != literal; |
396 | 5 | case Op::LT: |
397 | 5 | return value < literal; |
398 | 0 | case Op::LE: |
399 | 0 | return value <= literal; |
400 | 14 | case Op::GT: |
401 | 14 | return value > literal; |
402 | 0 | case Op::GE: |
403 | 0 | return value >= literal; |
404 | 27 | } |
405 | 0 | __builtin_unreachable(); |
406 | 27 | } |
407 | | |
408 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
409 | 14 | const VExprSPtrs& arguments, Op op) { |
410 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
411 | 14 | DORIS_CHECK(slot_literal.has_value()); |
412 | 14 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
413 | 14 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
414 | 0 | return ZoneMapFilterResult::kUnsupported; |
415 | 0 | } |
416 | 14 | DORIS_CHECK( |
417 | 14 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
418 | 14 | if (slot_literal->literal.is_null()) { |
419 | 0 | return ZoneMapFilterResult::kUnsupported; |
420 | 0 | } |
421 | 14 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
422 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
423 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
424 | 14 | return std::ranges::any_of(dictionary->values, |
425 | 27 | [&](const Field& value) { |
426 | 27 | return dictionary_value_matches(value, slot_literal->literal, |
427 | 27 | effective_op); |
428 | 27 | }) |
429 | 14 | ? ZoneMapFilterResult::kMayMatch |
430 | 14 | : ZoneMapFilterResult::kNoMatch; |
431 | 14 | } |
432 | | |
433 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
434 | 19 | const VExprSPtrs& arguments, Op op) { |
435 | 19 | DORIS_CHECK(op == Op::EQ); |
436 | 19 | auto slot_literal = expr_zonemap::extract_bloom_filter_slot_and_literal(arguments); |
437 | 19 | DORIS_CHECK(slot_literal.has_value()); |
438 | 19 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
439 | 19 | } |
440 | | |
441 | 36.2k | inline std::optional<Op> op_from_name(std::string_view name) { |
442 | 36.2k | if (name == NameEquals::name) { |
443 | 17.1k | return Op::EQ; |
444 | 17.1k | } |
445 | 19.0k | if (name == NameNotEquals::name) { |
446 | 1.34k | return Op::NE; |
447 | 1.34k | } |
448 | 17.6k | if (name == NameLess::name) { |
449 | 5.30k | return Op::LT; |
450 | 5.30k | } |
451 | 12.3k | if (name == NameLessOrEquals::name) { |
452 | 2.09k | return Op::LE; |
453 | 2.09k | } |
454 | 10.2k | if (name == NameGreater::name) { |
455 | 5.52k | return Op::GT; |
456 | 5.52k | } |
457 | 4.90k | if (name == NameGreaterOrEquals::name) { |
458 | 4.90k | return Op::GE; |
459 | 4.90k | } |
460 | 18.4E | return std::nullopt; |
461 | 4.74k | } |
462 | | } // namespace comparison_zonemap_detail |
463 | | |
464 | | template <template <PrimitiveType> class Op, typename Name> |
465 | | class FunctionComparison : public IFunction { |
466 | | public: |
467 | | static constexpr auto name = Name::name; |
468 | 301k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 468 | 270k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 468 | 1.26k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 468 | 6.96k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 468 | 8.38k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 468 | 4.00k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 468 | 10.2k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
469 | | |
470 | 301k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 470 | 270k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 470 | 1.26k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 470 | 6.97k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 470 | 8.36k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 470 | 4.01k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 470 | 10.1k | FunctionComparison() = default; |
|
471 | | |
472 | 683k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 472 | 675k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 472 | 604 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 472 | 2.24k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 472 | 2.13k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 472 | 1.27k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 472 | 1.01k | double execute_cost() const override { return 0.5; } |
|
473 | | |
474 | | private: |
475 | | template <PrimitiveType PT> |
476 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
477 | 125k | const ColumnPtr& col_right_ptr) const { |
478 | 125k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
479 | 125k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
480 | | |
481 | 125k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
482 | 125k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
483 | | |
484 | 125k | DCHECK(!(left_is_const && right_is_const)); |
485 | | |
486 | 125k | if (!left_is_const && !right_is_const) { |
487 | 11.5k | auto col_res = ColumnUInt8::create(); |
488 | | |
489 | 11.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
490 | 11.5k | vec_res.resize(col_left->get_data().size()); |
491 | 11.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
492 | 11.5k | typename PrimitiveTypeTraits<PT>::CppType, |
493 | 11.5k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
494 | 11.5k | vec_res); |
495 | | |
496 | 11.5k | block.replace_by_position(result, std::move(col_res)); |
497 | 113k | } else if (!left_is_const && right_is_const) { |
498 | 46.7k | auto col_res = ColumnUInt8::create(); |
499 | | |
500 | 46.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
501 | 46.7k | vec_res.resize(col_left->size()); |
502 | 46.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
503 | 46.7k | typename PrimitiveTypeTraits<PT>::CppType, |
504 | 46.7k | Op<PT>>::vector_constant(col_left->get_data(), |
505 | 46.7k | col_right->get_element(0), vec_res); |
506 | | |
507 | 46.7k | block.replace_by_position(result, std::move(col_res)); |
508 | 67.1k | } else if (left_is_const && !right_is_const) { |
509 | 67.1k | auto col_res = ColumnUInt8::create(); |
510 | | |
511 | 67.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
512 | 67.1k | vec_res.resize(col_right->size()); |
513 | 67.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
514 | 67.1k | typename PrimitiveTypeTraits<PT>::CppType, |
515 | 67.1k | Op<PT>>::constant_vector(col_left->get_element(0), |
516 | 67.1k | col_right->get_data(), vec_res); |
517 | | |
518 | 67.1k | block.replace_by_position(result, std::move(col_res)); |
519 | 67.1k | } |
520 | 125k | return Status::OK(); |
521 | 125k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 95 | const ColumnPtr& col_right_ptr) const { | 478 | 95 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 95 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 95 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 95 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 95 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 95 | if (!left_is_const && !right_is_const) { | 487 | 63 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 63 | vec_res.resize(col_left->get_data().size()); | 491 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 63 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 63 | vec_res); | 495 | | | 496 | 63 | block.replace_by_position(result, std::move(col_res)); | 497 | 63 | } else if (!left_is_const && right_is_const) { | 498 | 32 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 32 | vec_res.resize(col_left->size()); | 502 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 32 | col_right->get_element(0), vec_res); | 506 | | | 507 | 32 | block.replace_by_position(result, std::move(col_res)); | 508 | 32 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 95 | return Status::OK(); | 521 | 95 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 702 | const ColumnPtr& col_right_ptr) const { | 478 | 702 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 702 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 702 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 702 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 702 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 702 | if (!left_is_const && !right_is_const) { | 487 | 187 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 187 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 187 | vec_res.resize(col_left->get_data().size()); | 491 | 187 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 187 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 187 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 187 | vec_res); | 495 | | | 496 | 187 | block.replace_by_position(result, std::move(col_res)); | 497 | 515 | } else if (!left_is_const && right_is_const) { | 498 | 515 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 515 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 515 | vec_res.resize(col_left->size()); | 502 | 515 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 515 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 515 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 515 | col_right->get_element(0), vec_res); | 506 | | | 507 | 515 | block.replace_by_position(result, std::move(col_res)); | 508 | 515 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 702 | return Status::OK(); | 521 | 702 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 377 | const ColumnPtr& col_right_ptr) const { | 478 | 377 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 377 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 377 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 377 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 377 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 377 | if (!left_is_const && !right_is_const) { | 487 | 203 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 203 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 203 | vec_res.resize(col_left->get_data().size()); | 491 | 203 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 203 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 203 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 203 | vec_res); | 495 | | | 496 | 203 | block.replace_by_position(result, std::move(col_res)); | 497 | 203 | } else if (!left_is_const && right_is_const) { | 498 | 175 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 175 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 175 | vec_res.resize(col_left->size()); | 502 | 175 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 175 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 175 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 175 | col_right->get_element(0), vec_res); | 506 | | | 507 | 175 | block.replace_by_position(result, std::move(col_res)); | 508 | 18.4E | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 377 | return Status::OK(); | 521 | 377 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 200 | const ColumnPtr& col_right_ptr) const { | 478 | 200 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 200 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 200 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 200 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 200 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 200 | if (!left_is_const && !right_is_const) { | 487 | 114 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 114 | vec_res.resize(col_left->get_data().size()); | 491 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 114 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 114 | vec_res); | 495 | | | 496 | 114 | block.replace_by_position(result, std::move(col_res)); | 497 | 114 | } else if (!left_is_const && right_is_const) { | 498 | 74 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 74 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 74 | vec_res.resize(col_left->size()); | 502 | 74 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 74 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 74 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 74 | col_right->get_element(0), vec_res); | 506 | | | 507 | 74 | block.replace_by_position(result, std::move(col_res)); | 508 | 74 | } else if (left_is_const && !right_is_const) { | 509 | 12 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 12 | vec_res.resize(col_right->size()); | 513 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 12 | col_right->get_data(), vec_res); | 517 | | | 518 | 12 | block.replace_by_position(result, std::move(col_res)); | 519 | 12 | } | 520 | 200 | return Status::OK(); | 521 | 200 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 12 | const ColumnPtr& col_right_ptr) const { | 478 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 12 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 12 | if (!left_is_const && !right_is_const) { | 487 | 2 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 2 | vec_res.resize(col_left->get_data().size()); | 491 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 2 | vec_res); | 495 | | | 496 | 2 | block.replace_by_position(result, std::move(col_res)); | 497 | 10 | } else if (!left_is_const && right_is_const) { | 498 | 10 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 10 | vec_res.resize(col_left->size()); | 502 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 10 | col_right->get_element(0), vec_res); | 506 | | | 507 | 10 | block.replace_by_position(result, std::move(col_res)); | 508 | 10 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 12 | return Status::OK(); | 521 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 6.14k | const ColumnPtr& col_right_ptr) const { | 478 | 6.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 6.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 6.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 6.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 6.14k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 6.14k | if (!left_is_const && !right_is_const) { | 487 | 124 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 124 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 124 | vec_res.resize(col_left->get_data().size()); | 491 | 124 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 124 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 124 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 124 | vec_res); | 495 | | | 496 | 124 | block.replace_by_position(result, std::move(col_res)); | 497 | 6.01k | } else if (!left_is_const && right_is_const) { | 498 | 5.72k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 5.72k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 5.72k | vec_res.resize(col_left->size()); | 502 | 5.72k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 5.72k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 5.72k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 5.72k | col_right->get_element(0), vec_res); | 506 | | | 507 | 5.72k | block.replace_by_position(result, std::move(col_res)); | 508 | 5.72k | } else if (left_is_const && !right_is_const) { | 509 | 300 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 300 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 300 | vec_res.resize(col_right->size()); | 513 | 300 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 300 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 300 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 300 | col_right->get_data(), vec_res); | 517 | | | 518 | 300 | block.replace_by_position(result, std::move(col_res)); | 519 | 300 | } | 520 | 6.14k | return Status::OK(); | 521 | 6.14k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 391 | const ColumnPtr& col_right_ptr) const { | 478 | 391 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 391 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 391 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 391 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 391 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 391 | if (!left_is_const && !right_is_const) { | 487 | 88 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 88 | vec_res.resize(col_left->get_data().size()); | 491 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 88 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 88 | vec_res); | 495 | | | 496 | 88 | block.replace_by_position(result, std::move(col_res)); | 497 | 303 | } else if (!left_is_const && right_is_const) { | 498 | 269 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 269 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 269 | vec_res.resize(col_left->size()); | 502 | 269 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 269 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 269 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 269 | col_right->get_element(0), vec_res); | 506 | | | 507 | 269 | block.replace_by_position(result, std::move(col_res)); | 508 | 269 | } else if (left_is_const && !right_is_const) { | 509 | 36 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 36 | vec_res.resize(col_right->size()); | 513 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 36 | col_right->get_data(), vec_res); | 517 | | | 518 | 36 | block.replace_by_position(result, std::move(col_res)); | 519 | 36 | } | 520 | 391 | return Status::OK(); | 521 | 391 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 3.17k | const ColumnPtr& col_right_ptr) const { | 478 | 3.17k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 3.17k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 3.17k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 3.17k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 3.17k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 3.17k | if (!left_is_const && !right_is_const) { | 487 | 982 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 982 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 982 | vec_res.resize(col_left->get_data().size()); | 491 | 982 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 982 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 982 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 982 | vec_res); | 495 | | | 496 | 982 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.19k | } else if (!left_is_const && right_is_const) { | 498 | 2.11k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.11k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.11k | vec_res.resize(col_left->size()); | 502 | 2.11k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.11k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.11k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.11k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.11k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.11k | } else if (left_is_const && !right_is_const) { | 509 | 78 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 78 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 78 | vec_res.resize(col_right->size()); | 513 | 78 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 78 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 78 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 78 | col_right->get_data(), vec_res); | 517 | | | 518 | 78 | block.replace_by_position(result, std::move(col_res)); | 519 | 78 | } | 520 | 3.17k | return Status::OK(); | 521 | 3.17k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 7.59k | const ColumnPtr& col_right_ptr) const { | 478 | 7.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 7.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 7.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 7.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 7.59k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 7.59k | if (!left_is_const && !right_is_const) { | 487 | 162 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 162 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 162 | vec_res.resize(col_left->get_data().size()); | 491 | 162 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 162 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 162 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 162 | vec_res); | 495 | | | 496 | 162 | block.replace_by_position(result, std::move(col_res)); | 497 | 7.42k | } else if (!left_is_const && right_is_const) { | 498 | 6.23k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 6.23k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 6.23k | vec_res.resize(col_left->size()); | 502 | 6.23k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 6.23k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 6.23k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 6.23k | col_right->get_element(0), vec_res); | 506 | | | 507 | 6.23k | block.replace_by_position(result, std::move(col_res)); | 508 | 6.23k | } else if (left_is_const && !right_is_const) { | 509 | 1.19k | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 1.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 1.19k | vec_res.resize(col_right->size()); | 513 | 1.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 1.19k | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 1.19k | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 1.19k | col_right->get_data(), vec_res); | 517 | | | 518 | 1.19k | block.replace_by_position(result, std::move(col_res)); | 519 | 1.19k | } | 520 | 7.59k | return Status::OK(); | 521 | 7.59k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 91 | const ColumnPtr& col_right_ptr) const { | 478 | 91 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 91 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 91 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 91 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 91 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 91 | if (!left_is_const && !right_is_const) { | 487 | 46 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 46 | vec_res.resize(col_left->get_data().size()); | 491 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 46 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 46 | vec_res); | 495 | | | 496 | 46 | block.replace_by_position(result, std::move(col_res)); | 497 | 46 | } else if (!left_is_const && right_is_const) { | 498 | 29 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 29 | vec_res.resize(col_left->size()); | 502 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 29 | col_right->get_element(0), vec_res); | 506 | | | 507 | 29 | block.replace_by_position(result, std::move(col_res)); | 508 | 29 | } else if (left_is_const && !right_is_const) { | 509 | 16 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 16 | vec_res.resize(col_right->size()); | 513 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 16 | col_right->get_data(), vec_res); | 517 | | | 518 | 16 | block.replace_by_position(result, std::move(col_res)); | 519 | 16 | } | 520 | 91 | return Status::OK(); | 521 | 91 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 12 | const ColumnPtr& col_right_ptr) const { | 478 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 12 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 12 | if (!left_is_const && !right_is_const) { | 487 | 5 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 5 | vec_res.resize(col_left->get_data().size()); | 491 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 5 | vec_res); | 495 | | | 496 | 5 | block.replace_by_position(result, std::move(col_res)); | 497 | 7 | } else if (!left_is_const && right_is_const) { | 498 | 7 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 7 | vec_res.resize(col_left->size()); | 502 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 7 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 7 | col_right->get_element(0), vec_res); | 506 | | | 507 | 7 | block.replace_by_position(result, std::move(col_res)); | 508 | 7 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 12 | return Status::OK(); | 521 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 17 | const ColumnPtr& col_right_ptr) const { | 478 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 17 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 17 | if (!left_is_const && !right_is_const) { | 487 | 13 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 13 | vec_res.resize(col_left->get_data().size()); | 491 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 13 | vec_res); | 495 | | | 496 | 13 | block.replace_by_position(result, std::move(col_res)); | 497 | 13 | } else if (!left_is_const && right_is_const) { | 498 | 4 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 4 | vec_res.resize(col_left->size()); | 502 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 4 | col_right->get_element(0), vec_res); | 506 | | | 507 | 4 | block.replace_by_position(result, std::move(col_res)); | 508 | 4 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 17 | return Status::OK(); | 521 | 17 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.80k | const ColumnPtr& col_right_ptr) const { | 478 | 2.80k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.80k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.80k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.80k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.80k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.80k | if (!left_is_const && !right_is_const) { | 487 | 788 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 788 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 788 | vec_res.resize(col_left->get_data().size()); | 491 | 788 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 788 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 788 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 788 | vec_res); | 495 | | | 496 | 788 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.02k | } else if (!left_is_const && right_is_const) { | 498 | 1.96k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.96k | vec_res.resize(col_left->size()); | 502 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.96k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.96k | } else if (left_is_const && !right_is_const) { | 509 | 54 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 54 | vec_res.resize(col_right->size()); | 513 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 54 | col_right->get_data(), vec_res); | 517 | | | 518 | 54 | block.replace_by_position(result, std::move(col_res)); | 519 | 54 | } | 520 | 2.80k | return Status::OK(); | 521 | 2.80k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 67 | const ColumnPtr& col_right_ptr) const { | 478 | 67 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 67 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 67 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 67 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 67 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 67 | if (!left_is_const && !right_is_const) { | 487 | 67 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 67 | vec_res.resize(col_left->get_data().size()); | 491 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 67 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 67 | vec_res); | 495 | | | 496 | 67 | block.replace_by_position(result, std::move(col_res)); | 497 | 67 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 67 | return Status::OK(); | 521 | 67 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 682 | const ColumnPtr& col_right_ptr) const { | 478 | 682 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 682 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 682 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 682 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 682 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 682 | if (!left_is_const && !right_is_const) { | 487 | 85 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 85 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 85 | vec_res.resize(col_left->get_data().size()); | 491 | 85 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 85 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 85 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 85 | vec_res); | 495 | | | 496 | 85 | block.replace_by_position(result, std::move(col_res)); | 497 | 597 | } else if (!left_is_const && right_is_const) { | 498 | 597 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 597 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 597 | vec_res.resize(col_left->size()); | 502 | 597 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 597 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 597 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 597 | col_right->get_element(0), vec_res); | 506 | | | 507 | 597 | block.replace_by_position(result, std::move(col_res)); | 508 | 597 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 682 | return Status::OK(); | 521 | 682 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 4 | const ColumnPtr& col_right_ptr) const { | 478 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 4 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 4 | if (!left_is_const && !right_is_const) { | 487 | 4 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 4 | vec_res.resize(col_left->get_data().size()); | 491 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 4 | vec_res); | 495 | | | 496 | 4 | block.replace_by_position(result, std::move(col_res)); | 497 | 4 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 4 | return Status::OK(); | 521 | 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 | 477 | 70 | const ColumnPtr& col_right_ptr) const { | 478 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 70 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 70 | if (!left_is_const && !right_is_const) { | 487 | 39 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 39 | vec_res.resize(col_left->get_data().size()); | 491 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 39 | vec_res); | 495 | | | 496 | 39 | block.replace_by_position(result, std::move(col_res)); | 497 | 39 | } else if (!left_is_const && right_is_const) { | 498 | 31 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 31 | vec_res.resize(col_left->size()); | 502 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 31 | col_right->get_element(0), vec_res); | 506 | | | 507 | 31 | block.replace_by_position(result, std::move(col_res)); | 508 | 31 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 70 | return Status::OK(); | 521 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 8 | const ColumnPtr& col_right_ptr) const { | 478 | 8 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 8 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 8 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 8 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 8 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 8 | if (!left_is_const && !right_is_const) { | 487 | 8 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 8 | vec_res.resize(col_left->get_data().size()); | 491 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 8 | vec_res); | 495 | | | 496 | 8 | block.replace_by_position(result, std::move(col_res)); | 497 | 8 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 8 | return Status::OK(); | 521 | 8 | } |
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 | 477 | 84 | const ColumnPtr& col_right_ptr) const { | 478 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 84 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 84 | if (!left_is_const && !right_is_const) { | 487 | 56 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 56 | vec_res.resize(col_left->get_data().size()); | 491 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 56 | vec_res); | 495 | | | 496 | 56 | block.replace_by_position(result, std::move(col_res)); | 497 | 56 | } else if (!left_is_const && right_is_const) { | 498 | 28 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 28 | vec_res.resize(col_left->size()); | 502 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 28 | col_right->get_element(0), vec_res); | 506 | | | 507 | 28 | block.replace_by_position(result, std::move(col_res)); | 508 | 28 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 84 | return Status::OK(); | 521 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.10k | const ColumnPtr& col_right_ptr) const { | 478 | 1.10k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.10k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.10k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.10k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.10k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.10k | if (!left_is_const && !right_is_const) { | 487 | 911 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 911 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 911 | vec_res.resize(col_left->get_data().size()); | 491 | 911 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 911 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 911 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 911 | vec_res); | 495 | | | 496 | 911 | block.replace_by_position(result, std::move(col_res)); | 497 | 911 | } else if (!left_is_const && right_is_const) { | 498 | 197 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 197 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 197 | vec_res.resize(col_left->size()); | 502 | 197 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 197 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 197 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 197 | col_right->get_element(0), vec_res); | 506 | | | 507 | 197 | block.replace_by_position(result, std::move(col_res)); | 508 | 197 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1.10k | return Status::OK(); | 521 | 1.10k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.05k | const ColumnPtr& col_right_ptr) const { | 478 | 1.05k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.05k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.05k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.05k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.05k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.05k | if (!left_is_const && !right_is_const) { | 487 | 392 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 392 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 392 | vec_res.resize(col_left->get_data().size()); | 491 | 392 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 392 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 392 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 392 | vec_res); | 495 | | | 496 | 392 | block.replace_by_position(result, std::move(col_res)); | 497 | 664 | } else if (!left_is_const && right_is_const) { | 498 | 50 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 50 | vec_res.resize(col_left->size()); | 502 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 50 | col_right->get_element(0), vec_res); | 506 | | | 507 | 50 | block.replace_by_position(result, std::move(col_res)); | 508 | 614 | } else if (left_is_const && !right_is_const) { | 509 | 614 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 614 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 614 | vec_res.resize(col_right->size()); | 513 | 614 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 614 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 614 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 614 | col_right->get_data(), vec_res); | 517 | | | 518 | 614 | block.replace_by_position(result, std::move(col_res)); | 519 | 614 | } | 520 | 1.05k | return Status::OK(); | 521 | 1.05k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 48 | const ColumnPtr& col_right_ptr) const { | 478 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 48 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 48 | if (!left_is_const && !right_is_const) { | 487 | 20 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 20 | vec_res.resize(col_left->get_data().size()); | 491 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 20 | vec_res); | 495 | | | 496 | 20 | block.replace_by_position(result, std::move(col_res)); | 497 | 28 | } else if (!left_is_const && right_is_const) { | 498 | 28 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 28 | vec_res.resize(col_left->size()); | 502 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 28 | col_right->get_element(0), vec_res); | 506 | | | 507 | 28 | block.replace_by_position(result, std::move(col_res)); | 508 | 28 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 48 | return Status::OK(); | 521 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 60 | const ColumnPtr& col_right_ptr) const { | 478 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 60 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 60 | if (!left_is_const && !right_is_const) { | 487 | 20 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 20 | vec_res.resize(col_left->get_data().size()); | 491 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 20 | vec_res); | 495 | | | 496 | 20 | block.replace_by_position(result, std::move(col_res)); | 497 | 40 | } else if (!left_is_const && right_is_const) { | 498 | 40 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 40 | vec_res.resize(col_left->size()); | 502 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 40 | col_right->get_element(0), vec_res); | 506 | | | 507 | 40 | block.replace_by_position(result, std::move(col_res)); | 508 | 40 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 60 | return Status::OK(); | 521 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.14k | const ColumnPtr& col_right_ptr) const { | 478 | 1.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.14k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.14k | if (!left_is_const && !right_is_const) { | 487 | 1.09k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.09k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.09k | vec_res.resize(col_left->get_data().size()); | 491 | 1.09k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.09k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.09k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.09k | vec_res); | 495 | | | 496 | 1.09k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.09k | } else if (!left_is_const && right_is_const) { | 498 | 41 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 41 | vec_res.resize(col_left->size()); | 502 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 41 | col_right->get_element(0), vec_res); | 506 | | | 507 | 41 | block.replace_by_position(result, std::move(col_res)); | 508 | 41 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1.14k | return Status::OK(); | 521 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 3 | const ColumnPtr& col_right_ptr) const { | 478 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 3 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 3 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 3 | } else if (!left_is_const && right_is_const) { | 498 | 3 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 3 | vec_res.resize(col_left->size()); | 502 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 3 | col_right->get_element(0), vec_res); | 506 | | | 507 | 3 | block.replace_by_position(result, std::move(col_res)); | 508 | 3 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 3 | return Status::OK(); | 521 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 67 | const ColumnPtr& col_right_ptr) const { | 478 | 67 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 67 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 67 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 67 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 67 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 67 | if (!left_is_const && !right_is_const) { | 487 | 33 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 33 | vec_res.resize(col_left->get_data().size()); | 491 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 33 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 33 | vec_res); | 495 | | | 496 | 33 | block.replace_by_position(result, std::move(col_res)); | 497 | 34 | } else if (!left_is_const && right_is_const) { | 498 | 34 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 34 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 34 | vec_res.resize(col_left->size()); | 502 | 34 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 34 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 34 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 34 | col_right->get_element(0), vec_res); | 506 | | | 507 | 34 | block.replace_by_position(result, std::move(col_res)); | 508 | 34 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 67 | return Status::OK(); | 521 | 67 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.59k | const ColumnPtr& col_right_ptr) const { | 478 | 1.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.59k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.59k | if (!left_is_const && !right_is_const) { | 487 | 64 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 64 | vec_res.resize(col_left->get_data().size()); | 491 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 64 | vec_res); | 495 | | | 496 | 64 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.53k | } else if (!left_is_const && right_is_const) { | 498 | 1.28k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.28k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.28k | vec_res.resize(col_left->size()); | 502 | 1.28k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.28k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.28k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.28k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.28k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.28k | } else if (left_is_const && !right_is_const) { | 509 | 252 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 252 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 252 | vec_res.resize(col_right->size()); | 513 | 252 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 252 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 252 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 252 | col_right->get_data(), vec_res); | 517 | | | 518 | 252 | block.replace_by_position(result, std::move(col_res)); | 519 | 252 | } | 520 | 1.59k | return Status::OK(); | 521 | 1.59k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.35k | const ColumnPtr& col_right_ptr) const { | 478 | 2.35k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.35k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.35k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.35k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.35k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.35k | if (!left_is_const && !right_is_const) { | 487 | 112 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 112 | vec_res.resize(col_left->get_data().size()); | 491 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 112 | vec_res); | 495 | | | 496 | 112 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.24k | } else if (!left_is_const && right_is_const) { | 498 | 2.00k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.00k | vec_res.resize(col_left->size()); | 502 | 2.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.00k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.00k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.00k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.00k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.00k | } else if (left_is_const && !right_is_const) { | 509 | 240 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 240 | vec_res.resize(col_right->size()); | 513 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 240 | col_right->get_data(), vec_res); | 517 | | | 518 | 240 | block.replace_by_position(result, std::move(col_res)); | 519 | 240 | } | 520 | 2.35k | return Status::OK(); | 521 | 2.35k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 67.8k | const ColumnPtr& col_right_ptr) const { | 478 | 67.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 67.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 67.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 67.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 67.8k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 67.8k | if (!left_is_const && !right_is_const) { | 487 | 59 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 59 | vec_res.resize(col_left->get_data().size()); | 491 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 59 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 59 | vec_res); | 495 | | | 496 | 59 | block.replace_by_position(result, std::move(col_res)); | 497 | 67.7k | } else if (!left_is_const && right_is_const) { | 498 | 5.23k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 5.23k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 5.23k | vec_res.resize(col_left->size()); | 502 | 5.23k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 5.23k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 5.23k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 5.23k | col_right->get_element(0), vec_res); | 506 | | | 507 | 5.23k | block.replace_by_position(result, std::move(col_res)); | 508 | 62.5k | } else if (left_is_const && !right_is_const) { | 509 | 62.5k | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 62.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 62.5k | vec_res.resize(col_right->size()); | 513 | 62.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 62.5k | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 62.5k | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 62.5k | col_right->get_data(), vec_res); | 517 | | | 518 | 62.5k | block.replace_by_position(result, std::move(col_res)); | 519 | 62.5k | } | 520 | 67.8k | return Status::OK(); | 521 | 67.8k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.60k | const ColumnPtr& col_right_ptr) const { | 478 | 2.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.60k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.60k | if (!left_is_const && !right_is_const) { | 487 | 181 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 181 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 181 | vec_res.resize(col_left->get_data().size()); | 491 | 181 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 181 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 181 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 181 | vec_res); | 495 | | | 496 | 181 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.42k | } else if (!left_is_const && right_is_const) { | 498 | 1.89k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.89k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.89k | vec_res.resize(col_left->size()); | 502 | 1.89k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.89k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.89k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.89k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.89k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.89k | } else if (left_is_const && !right_is_const) { | 509 | 529 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 529 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 529 | vec_res.resize(col_right->size()); | 513 | 529 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 529 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 529 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 529 | col_right->get_data(), vec_res); | 517 | | | 518 | 529 | block.replace_by_position(result, std::move(col_res)); | 519 | 529 | } | 520 | 2.60k | return Status::OK(); | 521 | 2.60k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 248 | const ColumnPtr& col_right_ptr) const { | 478 | 248 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 248 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 248 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 248 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 248 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 248 | if (!left_is_const && !right_is_const) { | 487 | 3 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 3 | vec_res.resize(col_left->get_data().size()); | 491 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 3 | vec_res); | 495 | | | 496 | 3 | block.replace_by_position(result, std::move(col_res)); | 497 | 245 | } else if (!left_is_const && right_is_const) { | 498 | 200 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 200 | vec_res.resize(col_left->size()); | 502 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 200 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 200 | col_right->get_element(0), vec_res); | 506 | | | 507 | 200 | block.replace_by_position(result, std::move(col_res)); | 508 | 200 | } else if (left_is_const && !right_is_const) { | 509 | 45 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 45 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 45 | vec_res.resize(col_right->size()); | 513 | 45 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 45 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 45 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 45 | col_right->get_data(), vec_res); | 517 | | | 518 | 45 | block.replace_by_position(result, std::move(col_res)); | 519 | 45 | } | 520 | 248 | return Status::OK(); | 521 | 248 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 4 | const ColumnPtr& col_right_ptr) const { | 478 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 4 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 4 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 3 | } else if (!left_is_const && right_is_const) { | 498 | 3 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 3 | vec_res.resize(col_left->size()); | 502 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 3 | col_right->get_element(0), vec_res); | 506 | | | 507 | 3 | block.replace_by_position(result, std::move(col_res)); | 508 | 3 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 4 | return Status::OK(); | 521 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 611 | const ColumnPtr& col_right_ptr) const { | 478 | 611 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 611 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 611 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 611 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 611 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 611 | if (!left_is_const && !right_is_const) { | 487 | 104 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 104 | vec_res.resize(col_left->get_data().size()); | 491 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 104 | vec_res); | 495 | | | 496 | 104 | block.replace_by_position(result, std::move(col_res)); | 497 | 507 | } else if (!left_is_const && right_is_const) { | 498 | 507 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 507 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 507 | vec_res.resize(col_left->size()); | 502 | 507 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 507 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 507 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 507 | col_right->get_element(0), vec_res); | 506 | | | 507 | 507 | block.replace_by_position(result, std::move(col_res)); | 508 | 507 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 611 | return Status::OK(); | 521 | 611 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 324 | const ColumnPtr& col_right_ptr) const { | 478 | 324 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 324 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 324 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 324 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 324 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 324 | if (!left_is_const && !right_is_const) { | 487 | 20 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 20 | vec_res.resize(col_left->get_data().size()); | 491 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 20 | vec_res); | 495 | | | 496 | 20 | block.replace_by_position(result, std::move(col_res)); | 497 | 304 | } else if (!left_is_const && right_is_const) { | 498 | 303 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 303 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 303 | vec_res.resize(col_left->size()); | 502 | 303 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 303 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 303 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 303 | col_right->get_element(0), vec_res); | 506 | | | 507 | 303 | block.replace_by_position(result, std::move(col_res)); | 508 | 303 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 324 | return Status::OK(); | 521 | 324 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 545 | const ColumnPtr& col_right_ptr) const { | 478 | 545 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 545 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 545 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 545 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 545 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 545 | if (!left_is_const && !right_is_const) { | 487 | 31 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 31 | vec_res.resize(col_left->get_data().size()); | 491 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 31 | vec_res); | 495 | | | 496 | 31 | block.replace_by_position(result, std::move(col_res)); | 497 | 514 | } else if (!left_is_const && right_is_const) { | 498 | 514 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 514 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 514 | vec_res.resize(col_left->size()); | 502 | 514 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 514 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 514 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 514 | col_right->get_element(0), vec_res); | 506 | | | 507 | 514 | block.replace_by_position(result, std::move(col_res)); | 508 | 514 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 545 | return Status::OK(); | 521 | 545 | } |
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 | 477 | 22 | const ColumnPtr& col_right_ptr) const { | 478 | 22 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 22 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 22 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 22 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 22 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 22 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 22 | } else if (!left_is_const && right_is_const) { | 498 | 22 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 22 | vec_res.resize(col_left->size()); | 502 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 22 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 22 | col_right->get_element(0), vec_res); | 506 | | | 507 | 22 | block.replace_by_position(result, std::move(col_res)); | 508 | 22 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 22 | return Status::OK(); | 521 | 22 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 460 | const ColumnPtr& col_right_ptr) const { | 478 | 460 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 460 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 460 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 460 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 460 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 460 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 459 | } else if (!left_is_const && right_is_const) { | 498 | 453 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 453 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 453 | vec_res.resize(col_left->size()); | 502 | 453 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 453 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 453 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 453 | col_right->get_element(0), vec_res); | 506 | | | 507 | 453 | block.replace_by_position(result, std::move(col_res)); | 508 | 453 | } else if (left_is_const && !right_is_const) { | 509 | 6 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 6 | vec_res.resize(col_right->size()); | 513 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 6 | col_right->get_data(), vec_res); | 517 | | | 518 | 6 | block.replace_by_position(result, std::move(col_res)); | 519 | 6 | } | 520 | 460 | return Status::OK(); | 521 | 460 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 126 | const ColumnPtr& col_right_ptr) const { | 478 | 126 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 126 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 126 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 126 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 126 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 126 | if (!left_is_const && !right_is_const) { | 487 | 6 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 6 | vec_res.resize(col_left->get_data().size()); | 491 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 6 | vec_res); | 495 | | | 496 | 6 | block.replace_by_position(result, std::move(col_res)); | 497 | 120 | } else if (!left_is_const && right_is_const) { | 498 | 119 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 119 | vec_res.resize(col_left->size()); | 502 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 119 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 119 | col_right->get_element(0), vec_res); | 506 | | | 507 | 119 | block.replace_by_position(result, std::move(col_res)); | 508 | 119 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 126 | return Status::OK(); | 521 | 126 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 401 | const ColumnPtr& col_right_ptr) const { | 478 | 401 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 401 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 401 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 401 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 401 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 401 | if (!left_is_const && !right_is_const) { | 487 | 358 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 358 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 358 | vec_res.resize(col_left->get_data().size()); | 491 | 358 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 358 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 358 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 358 | vec_res); | 495 | | | 496 | 358 | block.replace_by_position(result, std::move(col_res)); | 497 | 358 | } else if (!left_is_const && right_is_const) { | 498 | 43 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 43 | vec_res.resize(col_left->size()); | 502 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 43 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 43 | col_right->get_element(0), vec_res); | 506 | | | 507 | 43 | block.replace_by_position(result, std::move(col_res)); | 508 | 43 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 401 | return Status::OK(); | 521 | 401 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 48 | const ColumnPtr& col_right_ptr) const { | 478 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 48 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 48 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 48 | } else if (!left_is_const && right_is_const) { | 498 | 48 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 48 | vec_res.resize(col_left->size()); | 502 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 48 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 48 | col_right->get_element(0), vec_res); | 506 | | | 507 | 48 | block.replace_by_position(result, std::move(col_res)); | 508 | 48 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 48 | return Status::OK(); | 521 | 48 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 54 | const ColumnPtr& col_right_ptr) const { | 478 | 54 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 54 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 54 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 54 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 54 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 54 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 54 | } else if (!left_is_const && right_is_const) { | 498 | 54 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 54 | vec_res.resize(col_left->size()); | 502 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 54 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 54 | col_right->get_element(0), vec_res); | 506 | | | 507 | 54 | block.replace_by_position(result, std::move(col_res)); | 508 | 54 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 54 | return Status::OK(); | 521 | 54 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.20k | const ColumnPtr& col_right_ptr) const { | 478 | 1.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.20k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.20k | if (!left_is_const && !right_is_const) { | 487 | 20 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 20 | vec_res.resize(col_left->get_data().size()); | 491 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 20 | vec_res); | 495 | | | 496 | 20 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.18k | } else if (!left_is_const && right_is_const) { | 498 | 1.18k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.18k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.18k | vec_res.resize(col_left->size()); | 502 | 1.18k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.18k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.18k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.18k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.18k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.18k | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1.20k | return Status::OK(); | 521 | 1.20k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 754 | const ColumnPtr& col_right_ptr) const { | 478 | 754 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 754 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 754 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 754 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 754 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 754 | if (!left_is_const && !right_is_const) { | 487 | 17 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 17 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 17 | vec_res.resize(col_left->get_data().size()); | 491 | 17 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 17 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 17 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 17 | vec_res); | 495 | | | 496 | 17 | block.replace_by_position(result, std::move(col_res)); | 497 | 737 | } else if (!left_is_const && right_is_const) { | 498 | 737 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 737 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 737 | vec_res.resize(col_left->size()); | 502 | 737 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 737 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 737 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 737 | col_right->get_element(0), vec_res); | 506 | | | 507 | 737 | block.replace_by_position(result, std::move(col_res)); | 508 | 737 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 754 | return Status::OK(); | 521 | 754 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 14 | const ColumnPtr& col_right_ptr) const { | 478 | 14 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 14 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 14 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 14 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 14 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 14 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 14 | } else if (!left_is_const && right_is_const) { | 498 | 14 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 14 | vec_res.resize(col_left->size()); | 502 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 14 | col_right->get_element(0), vec_res); | 506 | | | 507 | 14 | block.replace_by_position(result, std::move(col_res)); | 508 | 14 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 14 | return Status::OK(); | 521 | 14 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 575 | const ColumnPtr& col_right_ptr) const { | 478 | 575 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 575 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 575 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 575 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 575 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 575 | if (!left_is_const && !right_is_const) { | 487 | 108 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 108 | vec_res.resize(col_left->get_data().size()); | 491 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 108 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 108 | vec_res); | 495 | | | 496 | 108 | block.replace_by_position(result, std::move(col_res)); | 497 | 467 | } else if (!left_is_const && right_is_const) { | 498 | 467 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 467 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 467 | vec_res.resize(col_left->size()); | 502 | 467 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 467 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 467 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 467 | col_right->get_element(0), vec_res); | 506 | | | 507 | 467 | block.replace_by_position(result, std::move(col_res)); | 508 | 467 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 575 | return Status::OK(); | 521 | 575 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 23 | const ColumnPtr& col_right_ptr) const { | 478 | 23 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 23 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 23 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 23 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 23 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 24 | if (!left_is_const && !right_is_const) { | 487 | 20 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 20 | vec_res.resize(col_left->get_data().size()); | 491 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 20 | vec_res); | 495 | | | 496 | 20 | block.replace_by_position(result, std::move(col_res)); | 497 | 20 | } else if (!left_is_const && right_is_const) { | 498 | 4 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 4 | vec_res.resize(col_left->size()); | 502 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 4 | col_right->get_element(0), vec_res); | 506 | | | 507 | 4 | block.replace_by_position(result, std::move(col_res)); | 508 | 18.4E | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 23 | return Status::OK(); | 521 | 23 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 145 | const ColumnPtr& col_right_ptr) const { | 478 | 145 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 145 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 145 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 145 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 145 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 145 | if (!left_is_const && !right_is_const) { | 487 | 23 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 23 | vec_res.resize(col_left->get_data().size()); | 491 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 23 | vec_res); | 495 | | | 496 | 23 | block.replace_by_position(result, std::move(col_res)); | 497 | 122 | } else if (!left_is_const && right_is_const) { | 498 | 122 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 122 | vec_res.resize(col_left->size()); | 502 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 122 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 122 | col_right->get_element(0), vec_res); | 506 | | | 507 | 122 | block.replace_by_position(result, std::move(col_res)); | 508 | 122 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 145 | return Status::OK(); | 521 | 145 | } |
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 | 477 | 85 | const ColumnPtr& col_right_ptr) const { | 478 | 85 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 85 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 85 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 85 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 85 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 85 | if (!left_is_const && !right_is_const) { | 487 | 85 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 85 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 85 | vec_res.resize(col_left->get_data().size()); | 491 | 85 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 85 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 85 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 85 | vec_res); | 495 | | | 496 | 85 | block.replace_by_position(result, std::move(col_res)); | 497 | 85 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 85 | return Status::OK(); | 521 | 85 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.14k | const ColumnPtr& col_right_ptr) const { | 478 | 2.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.14k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.15k | if (!left_is_const && !right_is_const) { | 487 | 1.78k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.78k | vec_res.resize(col_left->get_data().size()); | 491 | 1.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.78k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.78k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.78k | vec_res); | 495 | | | 496 | 1.78k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.78k | } else if (!left_is_const && right_is_const) { | 498 | 370 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 370 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 370 | vec_res.resize(col_left->size()); | 502 | 370 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 370 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 370 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 370 | col_right->get_element(0), vec_res); | 506 | | | 507 | 370 | block.replace_by_position(result, std::move(col_res)); | 508 | 18.4E | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 2.14k | return Status::OK(); | 521 | 2.14k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 294 | const ColumnPtr& col_right_ptr) const { | 478 | 294 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 294 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 294 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 294 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 294 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 294 | if (!left_is_const && !right_is_const) { | 487 | 235 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 235 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 235 | vec_res.resize(col_left->get_data().size()); | 491 | 235 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 235 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 235 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 235 | vec_res); | 495 | | | 496 | 235 | block.replace_by_position(result, std::move(col_res)); | 497 | 235 | } else if (!left_is_const && right_is_const) { | 498 | 59 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 59 | vec_res.resize(col_left->size()); | 502 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 59 | col_right->get_element(0), vec_res); | 506 | | | 507 | 59 | block.replace_by_position(result, std::move(col_res)); | 508 | 59 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 294 | return Status::OK(); | 521 | 294 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 150 | const ColumnPtr& col_right_ptr) const { | 478 | 150 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 150 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 150 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 150 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 150 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 150 | if (!left_is_const && !right_is_const) { | 487 | 111 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 111 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 111 | vec_res.resize(col_left->get_data().size()); | 491 | 111 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 111 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 111 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 111 | vec_res); | 495 | | | 496 | 111 | block.replace_by_position(result, std::move(col_res)); | 497 | 111 | } else if (!left_is_const && right_is_const) { | 498 | 39 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 39 | vec_res.resize(col_left->size()); | 502 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 39 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 39 | col_right->get_element(0), vec_res); | 506 | | | 507 | 39 | block.replace_by_position(result, std::move(col_res)); | 508 | 39 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 150 | return Status::OK(); | 521 | 150 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2 | const ColumnPtr& col_right_ptr) const { | 478 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 1 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1 | vec_res.resize(col_left->size()); | 502 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1 | col_right->get_element(0), vec_res); | 506 | | | 507 | 1 | block.replace_by_position(result, std::move(col_res)); | 508 | 1 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 2 | return Status::OK(); | 521 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.40k | const ColumnPtr& col_right_ptr) const { | 478 | 2.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.40k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.40k | if (!left_is_const && !right_is_const) { | 487 | 214 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 214 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 214 | vec_res.resize(col_left->get_data().size()); | 491 | 214 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 214 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 214 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 214 | vec_res); | 495 | | | 496 | 214 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.19k | } else if (!left_is_const && right_is_const) { | 498 | 1.93k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.93k | vec_res.resize(col_left->size()); | 502 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.93k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.93k | } else if (left_is_const && !right_is_const) { | 509 | 264 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 264 | vec_res.resize(col_right->size()); | 513 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 264 | col_right->get_data(), vec_res); | 517 | | | 518 | 264 | block.replace_by_position(result, std::move(col_res)); | 519 | 264 | } | 520 | 2.40k | return Status::OK(); | 521 | 2.40k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 169 | const ColumnPtr& col_right_ptr) const { | 478 | 169 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 169 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 169 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 169 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 169 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 169 | if (!left_is_const && !right_is_const) { | 487 | 155 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 155 | vec_res.resize(col_left->get_data().size()); | 491 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 155 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 155 | vec_res); | 495 | | | 496 | 155 | block.replace_by_position(result, std::move(col_res)); | 497 | 155 | } else if (!left_is_const && right_is_const) { | 498 | 14 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 14 | vec_res.resize(col_left->size()); | 502 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 14 | col_right->get_element(0), vec_res); | 506 | | | 507 | 14 | block.replace_by_position(result, std::move(col_res)); | 508 | 14 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 169 | return Status::OK(); | 521 | 169 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.97k | const ColumnPtr& col_right_ptr) const { | 478 | 1.97k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.97k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.97k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.97k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.97k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.97k | if (!left_is_const && !right_is_const) { | 487 | 897 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 897 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 897 | vec_res.resize(col_left->get_data().size()); | 491 | 897 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 897 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 897 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 897 | vec_res); | 495 | | | 496 | 897 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.07k | } else if (!left_is_const && right_is_const) { | 498 | 886 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 886 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 886 | vec_res.resize(col_left->size()); | 502 | 886 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 886 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 886 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 886 | col_right->get_element(0), vec_res); | 506 | | | 507 | 886 | block.replace_by_position(result, std::move(col_res)); | 508 | 886 | } else if (left_is_const && !right_is_const) { | 509 | 193 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 193 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 193 | vec_res.resize(col_right->size()); | 513 | 193 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 193 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 193 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 193 | col_right->get_data(), vec_res); | 517 | | | 518 | 193 | block.replace_by_position(result, std::move(col_res)); | 519 | 193 | } | 520 | 1.97k | return Status::OK(); | 521 | 1.97k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 911 | const ColumnPtr& col_right_ptr) const { | 478 | 911 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 911 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 911 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 911 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 911 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 911 | if (!left_is_const && !right_is_const) { | 487 | 262 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 262 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 262 | vec_res.resize(col_left->get_data().size()); | 491 | 262 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 262 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 262 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 262 | vec_res); | 495 | | | 496 | 262 | block.replace_by_position(result, std::move(col_res)); | 497 | 649 | } else if (!left_is_const && right_is_const) { | 498 | 569 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 569 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 569 | vec_res.resize(col_left->size()); | 502 | 569 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 569 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 569 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 569 | col_right->get_element(0), vec_res); | 506 | | | 507 | 569 | block.replace_by_position(result, std::move(col_res)); | 508 | 569 | } else if (left_is_const && !right_is_const) { | 509 | 80 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 80 | vec_res.resize(col_right->size()); | 513 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 80 | col_right->get_data(), vec_res); | 517 | | | 518 | 80 | block.replace_by_position(result, std::move(col_res)); | 519 | 80 | } | 520 | 911 | return Status::OK(); | 521 | 911 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 244 | const ColumnPtr& col_right_ptr) const { | 478 | 244 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 244 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 244 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 244 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 244 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 244 | if (!left_is_const && !right_is_const) { | 487 | 133 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 133 | vec_res.resize(col_left->get_data().size()); | 491 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 133 | vec_res); | 495 | | | 496 | 133 | block.replace_by_position(result, std::move(col_res)); | 497 | 133 | } else if (!left_is_const && right_is_const) { | 498 | 42 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 42 | vec_res.resize(col_left->size()); | 502 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 42 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 42 | col_right->get_element(0), vec_res); | 506 | | | 507 | 42 | block.replace_by_position(result, std::move(col_res)); | 508 | 70 | } else if (left_is_const && !right_is_const) { | 509 | 70 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 70 | vec_res.resize(col_right->size()); | 513 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 70 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 70 | col_right->get_data(), vec_res); | 517 | | | 518 | 70 | block.replace_by_position(result, std::move(col_res)); | 519 | 70 | } | 520 | 244 | return Status::OK(); | 521 | 244 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 17 | const ColumnPtr& col_right_ptr) const { | 478 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 17 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 17 | if (!left_is_const && !right_is_const) { | 487 | 15 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 15 | vec_res.resize(col_left->get_data().size()); | 491 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 15 | vec_res); | 495 | | | 496 | 15 | block.replace_by_position(result, std::move(col_res)); | 497 | 15 | } else if (!left_is_const && right_is_const) { | 498 | 2 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2 | vec_res.resize(col_left->size()); | 502 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2 | col_right->get_element(0), vec_res); | 506 | | | 507 | 2 | block.replace_by_position(result, std::move(col_res)); | 508 | 2 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 17 | return Status::OK(); | 521 | 17 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 15 | const ColumnPtr& col_right_ptr) const { | 478 | 15 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 15 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 15 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 15 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 15 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 15 | if (!left_is_const && !right_is_const) { | 487 | 15 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 15 | vec_res.resize(col_left->get_data().size()); | 491 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 15 | vec_res); | 495 | | | 496 | 15 | block.replace_by_position(result, std::move(col_res)); | 497 | 15 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 15 | return Status::OK(); | 521 | 15 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 457 | const ColumnPtr& col_right_ptr) const { | 478 | 457 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 457 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 457 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 457 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 457 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 457 | if (!left_is_const && !right_is_const) { | 487 | 110 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 110 | vec_res.resize(col_left->get_data().size()); | 491 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 110 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 110 | vec_res); | 495 | | | 496 | 110 | block.replace_by_position(result, std::move(col_res)); | 497 | 347 | } else if (!left_is_const && right_is_const) { | 498 | 347 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 347 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 347 | vec_res.resize(col_left->size()); | 502 | 347 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 347 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 347 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 347 | col_right->get_element(0), vec_res); | 506 | | | 507 | 347 | block.replace_by_position(result, std::move(col_res)); | 508 | 347 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 457 | return Status::OK(); | 521 | 457 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 128 | const ColumnPtr& col_right_ptr) const { | 478 | 128 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 128 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 128 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 128 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 128 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 128 | if (!left_is_const && !right_is_const) { | 487 | 128 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 128 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 128 | vec_res.resize(col_left->get_data().size()); | 491 | 128 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 128 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 128 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 128 | vec_res); | 495 | | | 496 | 128 | block.replace_by_position(result, std::move(col_res)); | 497 | 128 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 128 | return Status::OK(); | 521 | 128 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.40k | const ColumnPtr& col_right_ptr) const { | 478 | 1.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.40k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.40k | if (!left_is_const && !right_is_const) { | 487 | 132 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 132 | vec_res.resize(col_left->get_data().size()); | 491 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 132 | vec_res); | 495 | | | 496 | 132 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.27k | } else if (!left_is_const && right_is_const) { | 498 | 1.27k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.27k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.27k | vec_res.resize(col_left->size()); | 502 | 1.27k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.27k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.27k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.27k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.27k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.27k | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1.40k | return Status::OK(); | 521 | 1.40k | } |
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 | 477 | 13 | const ColumnPtr& col_right_ptr) const { | 478 | 13 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 13 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 13 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 13 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 13 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 13 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 13 | } else if (!left_is_const && right_is_const) { | 498 | 13 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 13 | vec_res.resize(col_left->size()); | 502 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 13 | col_right->get_element(0), vec_res); | 506 | | | 507 | 13 | block.replace_by_position(result, std::move(col_res)); | 508 | 13 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 13 | return Status::OK(); | 521 | 13 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 539 | const ColumnPtr& col_right_ptr) const { | 478 | 539 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 539 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 539 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 539 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 539 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 539 | if (!left_is_const && !right_is_const) { | 487 | 385 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 385 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 385 | vec_res.resize(col_left->get_data().size()); | 491 | 385 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 385 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 385 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 385 | vec_res); | 495 | | | 496 | 385 | block.replace_by_position(result, std::move(col_res)); | 497 | 385 | } else if (!left_is_const && right_is_const) { | 498 | 148 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 148 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 148 | vec_res.resize(col_left->size()); | 502 | 148 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 148 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 148 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 148 | col_right->get_element(0), vec_res); | 506 | | | 507 | 148 | block.replace_by_position(result, std::move(col_res)); | 508 | 148 | } else if (left_is_const && !right_is_const) { | 509 | 5 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 5 | vec_res.resize(col_right->size()); | 513 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 5 | col_right->get_data(), vec_res); | 517 | | | 518 | 5 | block.replace_by_position(result, std::move(col_res)); | 519 | 5 | } | 520 | 539 | return Status::OK(); | 521 | 539 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 72 | const ColumnPtr& col_right_ptr) const { | 478 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 72 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 72 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 72 | } else if (!left_is_const && right_is_const) { | 498 | 72 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 72 | vec_res.resize(col_left->size()); | 502 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 72 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 72 | col_right->get_element(0), vec_res); | 506 | | | 507 | 72 | block.replace_by_position(result, std::move(col_res)); | 508 | 72 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 72 | return Status::OK(); | 521 | 72 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 59 | const ColumnPtr& col_right_ptr) const { | 478 | 59 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 59 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 59 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 59 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 59 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 59 | if (!left_is_const && !right_is_const) { | 487 | 24 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 24 | vec_res.resize(col_left->get_data().size()); | 491 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 24 | vec_res); | 495 | | | 496 | 24 | block.replace_by_position(result, std::move(col_res)); | 497 | 35 | } else if (!left_is_const && right_is_const) { | 498 | 35 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 35 | vec_res.resize(col_left->size()); | 502 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 35 | col_right->get_element(0), vec_res); | 506 | | | 507 | 35 | block.replace_by_position(result, std::move(col_res)); | 508 | 35 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 59 | return Status::OK(); | 521 | 59 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2 | const ColumnPtr& col_right_ptr) const { | 478 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 1 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1 | vec_res.resize(col_left->size()); | 502 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1 | col_right->get_element(0), vec_res); | 506 | | | 507 | 1 | block.replace_by_position(result, std::move(col_res)); | 508 | 1 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 2 | return Status::OK(); | 521 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 46 | const ColumnPtr& col_right_ptr) const { | 478 | 46 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 46 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 46 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 46 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 46 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 46 | if (!left_is_const && !right_is_const) { | 487 | 2 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 2 | vec_res.resize(col_left->get_data().size()); | 491 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 2 | vec_res); | 495 | | | 496 | 2 | block.replace_by_position(result, std::move(col_res)); | 497 | 44 | } else if (!left_is_const && right_is_const) { | 498 | 44 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 44 | vec_res.resize(col_left->size()); | 502 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 44 | col_right->get_element(0), vec_res); | 506 | | | 507 | 44 | block.replace_by_position(result, std::move(col_res)); | 508 | 44 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 46 | return Status::OK(); | 521 | 46 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 50 | const ColumnPtr& col_right_ptr) const { | 478 | 50 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 50 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 50 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 50 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 50 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 50 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 50 | } else if (!left_is_const && right_is_const) { | 498 | 50 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 50 | vec_res.resize(col_left->size()); | 502 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 50 | col_right->get_element(0), vec_res); | 506 | | | 507 | 50 | block.replace_by_position(result, std::move(col_res)); | 508 | 50 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 50 | return Status::OK(); | 521 | 50 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 6.98k | const ColumnPtr& col_right_ptr) const { | 478 | 6.98k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 6.98k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 6.98k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 6.98k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 6.98k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 6.98k | if (!left_is_const && !right_is_const) { | 487 | 38 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 38 | vec_res.resize(col_left->get_data().size()); | 491 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 38 | vec_res); | 495 | | | 496 | 38 | block.replace_by_position(result, std::move(col_res)); | 497 | 6.94k | } else if (!left_is_const && right_is_const) { | 498 | 6.37k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 6.37k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 6.37k | vec_res.resize(col_left->size()); | 502 | 6.37k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 6.37k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 6.37k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 6.37k | col_right->get_element(0), vec_res); | 506 | | | 507 | 6.37k | block.replace_by_position(result, std::move(col_res)); | 508 | 6.37k | } else if (left_is_const && !right_is_const) { | 509 | 584 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 584 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 584 | vec_res.resize(col_right->size()); | 513 | 584 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 584 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 584 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 584 | col_right->get_data(), vec_res); | 517 | | | 518 | 584 | block.replace_by_position(result, std::move(col_res)); | 519 | 584 | } | 520 | 6.98k | return Status::OK(); | 521 | 6.98k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 721 | const ColumnPtr& col_right_ptr) const { | 478 | 721 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 721 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 721 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 721 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 721 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 721 | if (!left_is_const && !right_is_const) { | 487 | 72 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 72 | vec_res.resize(col_left->get_data().size()); | 491 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 72 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 72 | vec_res); | 495 | | | 496 | 72 | block.replace_by_position(result, std::move(col_res)); | 497 | 649 | } else if (!left_is_const && right_is_const) { | 498 | 601 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 601 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 601 | vec_res.resize(col_left->size()); | 502 | 601 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 601 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 601 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 601 | col_right->get_element(0), vec_res); | 506 | | | 507 | 601 | block.replace_by_position(result, std::move(col_res)); | 508 | 601 | } else if (left_is_const && !right_is_const) { | 509 | 48 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 48 | vec_res.resize(col_right->size()); | 513 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 48 | col_right->get_data(), vec_res); | 517 | | | 518 | 48 | block.replace_by_position(result, std::move(col_res)); | 519 | 48 | } | 520 | 721 | return Status::OK(); | 521 | 721 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 36 | const ColumnPtr& col_right_ptr) const { | 478 | 36 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 36 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 36 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 36 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 36 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 36 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 36 | } else if (!left_is_const && right_is_const) { | 498 | 36 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 36 | vec_res.resize(col_left->size()); | 502 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 36 | col_right->get_element(0), vec_res); | 506 | | | 507 | 36 | block.replace_by_position(result, std::move(col_res)); | 508 | 36 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 36 | return Status::OK(); | 521 | 36 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 415 | const ColumnPtr& col_right_ptr) const { | 478 | 415 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 415 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 415 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 415 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 415 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 415 | if (!left_is_const && !right_is_const) { | 487 | 104 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 104 | vec_res.resize(col_left->get_data().size()); | 491 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 104 | vec_res); | 495 | | | 496 | 104 | block.replace_by_position(result, std::move(col_res)); | 497 | 311 | } else if (!left_is_const && right_is_const) { | 498 | 311 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 311 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 311 | vec_res.resize(col_left->size()); | 502 | 311 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 311 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 311 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 311 | col_right->get_element(0), vec_res); | 506 | | | 507 | 311 | block.replace_by_position(result, std::move(col_res)); | 508 | 311 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 415 | return Status::OK(); | 521 | 415 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 20 | const ColumnPtr& col_right_ptr) const { | 478 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 20 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 20 | if (!left_is_const && !right_is_const) { | 487 | 20 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 20 | vec_res.resize(col_left->get_data().size()); | 491 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 20 | vec_res); | 495 | | | 496 | 20 | block.replace_by_position(result, std::move(col_res)); | 497 | 20 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 20 | return Status::OK(); | 521 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 133 | const ColumnPtr& col_right_ptr) const { | 478 | 133 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 133 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 133 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 133 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 133 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 133 | if (!left_is_const && !right_is_const) { | 487 | 20 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 20 | vec_res.resize(col_left->get_data().size()); | 491 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 20 | vec_res); | 495 | | | 496 | 20 | block.replace_by_position(result, std::move(col_res)); | 497 | 113 | } else if (!left_is_const && right_is_const) { | 498 | 113 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 113 | vec_res.resize(col_left->size()); | 502 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 113 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 113 | col_right->get_element(0), vec_res); | 506 | | | 507 | 113 | block.replace_by_position(result, std::move(col_res)); | 508 | 113 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 133 | return Status::OK(); | 521 | 133 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
522 | | |
523 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
524 | 3.10k | const ColumnWithTypeAndName& col_right) const { |
525 | 3.10k | auto call = [&](const auto& type) -> bool { |
526 | 3.10k | using DispatchType = std::decay_t<decltype(type)>; |
527 | 3.10k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
528 | 3.10k | block, result, col_left, col_right); |
529 | 3.10k | return true; |
530 | 3.10k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 97 | auto call = [&](const auto& type) -> bool { | 526 | 97 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 97 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 97 | block, result, col_left, col_right); | 529 | 97 | return true; | 530 | 97 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 102 | auto call = [&](const auto& type) -> bool { | 526 | 102 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 102 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 102 | block, result, col_left, col_right); | 529 | 102 | return true; | 530 | 102 | }; |
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 | 525 | 894 | auto call = [&](const auto& type) -> bool { | 526 | 894 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 894 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 894 | block, result, col_left, col_right); | 529 | 894 | return true; | 530 | 894 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 14 | auto call = [&](const auto& type) -> bool { | 526 | 14 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 14 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 14 | block, result, col_left, col_right); | 529 | 14 | return true; | 530 | 14 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 66 | auto call = [&](const auto& type) -> bool { | 526 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 66 | block, result, col_left, col_right); | 529 | 66 | return true; | 530 | 66 | }; |
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 | 525 | 28 | auto call = [&](const auto& type) -> bool { | 526 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 28 | block, result, col_left, col_right); | 529 | 28 | return true; | 530 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 30 | auto call = [&](const auto& type) -> bool { | 526 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 30 | block, result, col_left, col_right); | 529 | 30 | return true; | 530 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 8 | auto call = [&](const auto& type) -> bool { | 526 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 8 | block, result, col_left, col_right); | 529 | 8 | return true; | 530 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 64 | auto call = [&](const auto& type) -> bool { | 526 | 64 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 64 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 64 | block, result, col_left, col_right); | 529 | 64 | return true; | 530 | 64 | }; |
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 | 525 | 641 | auto call = [&](const auto& type) -> bool { | 526 | 641 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 641 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 641 | block, result, col_left, col_right); | 529 | 641 | return true; | 530 | 641 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 2 | auto call = [&](const auto& type) -> bool { | 526 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 2 | block, result, col_left, col_right); | 529 | 2 | return true; | 530 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 4 | auto call = [&](const auto& type) -> bool { | 526 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 4 | block, result, col_left, col_right); | 529 | 4 | return true; | 530 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 55 | auto call = [&](const auto& type) -> bool { | 526 | 55 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 55 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 55 | block, result, col_left, col_right); | 529 | 55 | return true; | 530 | 55 | }; |
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 | 525 | 72 | auto call = [&](const auto& type) -> bool { | 526 | 72 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 72 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 72 | block, result, col_left, col_right); | 529 | 72 | return true; | 530 | 72 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 17 | auto call = [&](const auto& type) -> bool { | 526 | 17 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 17 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 17 | block, result, col_left, col_right); | 529 | 17 | return true; | 530 | 17 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 165 | auto call = [&](const auto& type) -> bool { | 526 | 165 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 165 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 165 | block, result, col_left, col_right); | 529 | 165 | return true; | 530 | 165 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 185 | auto call = [&](const auto& type) -> bool { | 526 | 185 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 185 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 185 | block, result, col_left, col_right); | 529 | 185 | return true; | 530 | 185 | }; |
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 | 525 | 488 | auto call = [&](const auto& type) -> bool { | 526 | 488 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 488 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 488 | block, result, col_left, col_right); | 529 | 488 | return true; | 530 | 488 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 1 | auto call = [&](const auto& type) -> bool { | 526 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 1 | block, result, col_left, col_right); | 529 | 1 | return true; | 530 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 7 | auto call = [&](const auto& type) -> bool { | 526 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 7 | block, result, col_left, col_right); | 529 | 7 | return true; | 530 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 57 | auto call = [&](const auto& type) -> bool { | 526 | 57 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 57 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 57 | block, result, col_left, col_right); | 529 | 57 | return true; | 530 | 57 | }; |
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 | 525 | 94 | auto call = [&](const auto& type) -> bool { | 526 | 94 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 94 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 94 | block, result, col_left, col_right); | 529 | 94 | return true; | 530 | 94 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 12 | auto call = [&](const auto& type) -> bool { | 526 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 12 | block, result, col_left, col_right); | 529 | 12 | return true; | 530 | 12 | }; |
|
531 | | |
532 | 3.10k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
533 | 0 | return Status::RuntimeError( |
534 | 0 | "type of left column {} is not equal to type of right column {}", |
535 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
536 | 0 | } |
537 | | |
538 | 3.10k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
539 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
540 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
541 | 0 | } |
542 | 3.10k | return Status::OK(); |
543 | 3.10k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 1.10k | const ColumnWithTypeAndName& col_right) const { | 525 | 1.10k | auto call = [&](const auto& type) -> bool { | 526 | 1.10k | using DispatchType = std::decay_t<decltype(type)>; | 527 | 1.10k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 1.10k | block, result, col_left, col_right); | 529 | 1.10k | return true; | 530 | 1.10k | }; | 531 | | | 532 | 1.10k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 533 | 0 | return Status::RuntimeError( | 534 | 0 | "type of left column {} is not equal to type of right column {}", | 535 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 536 | 0 | } | 537 | | | 538 | 1.10k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 539 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 540 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 541 | 0 | } | 542 | 1.10k | return Status::OK(); | 543 | 1.10k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 124 | const ColumnWithTypeAndName& col_right) const { | 525 | 124 | auto call = [&](const auto& type) -> bool { | 526 | 124 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 124 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 124 | block, result, col_left, col_right); | 529 | 124 | return true; | 530 | 124 | }; | 531 | | | 532 | 124 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 533 | 0 | return Status::RuntimeError( | 534 | 0 | "type of left column {} is not equal to type of right column {}", | 535 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 536 | 0 | } | 537 | | | 538 | 124 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 539 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 540 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 541 | 0 | } | 542 | 124 | return Status::OK(); | 543 | 124 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 714 | const ColumnWithTypeAndName& col_right) const { | 525 | 714 | auto call = [&](const auto& type) -> bool { | 526 | 714 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 714 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 714 | block, result, col_left, col_right); | 529 | 714 | return true; | 530 | 714 | }; | 531 | | | 532 | 714 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 533 | 0 | return Status::RuntimeError( | 534 | 0 | "type of left column {} is not equal to type of right column {}", | 535 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 536 | 0 | } | 537 | | | 538 | 714 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 539 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 540 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 541 | 0 | } | 542 | 714 | return Status::OK(); | 543 | 714 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 148 | const ColumnWithTypeAndName& col_right) const { | 525 | 148 | auto call = [&](const auto& type) -> bool { | 526 | 148 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 148 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 148 | block, result, col_left, col_right); | 529 | 148 | return true; | 530 | 148 | }; | 531 | | | 532 | 148 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 533 | 0 | return Status::RuntimeError( | 534 | 0 | "type of left column {} is not equal to type of right column {}", | 535 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 536 | 0 | } | 537 | | | 538 | 148 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 539 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 540 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 541 | 0 | } | 542 | 148 | return Status::OK(); | 543 | 148 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 840 | const ColumnWithTypeAndName& col_right) const { | 525 | 840 | auto call = [&](const auto& type) -> bool { | 526 | 840 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 840 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 840 | block, result, col_left, col_right); | 529 | 840 | return true; | 530 | 840 | }; | 531 | | | 532 | 840 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 533 | 0 | return Status::RuntimeError( | 534 | 0 | "type of left column {} is not equal to type of right column {}", | 535 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 536 | 0 | } | 537 | | | 538 | 840 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 539 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 540 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 541 | 0 | } | 542 | 840 | return Status::OK(); | 543 | 840 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 170 | const ColumnWithTypeAndName& col_right) const { | 525 | 170 | auto call = [&](const auto& type) -> bool { | 526 | 170 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 170 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 170 | block, result, col_left, col_right); | 529 | 170 | return true; | 530 | 170 | }; | 531 | | | 532 | 170 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 533 | 0 | return Status::RuntimeError( | 534 | 0 | "type of left column {} is not equal to type of right column {}", | 535 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 536 | 0 | } | 537 | | | 538 | 170 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 539 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 540 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 541 | 0 | } | 542 | 170 | return Status::OK(); | 543 | 170 | } |
|
544 | | |
545 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
546 | 22.5k | const IColumn* c1) const { |
547 | 22.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
548 | 22.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
549 | 22.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
550 | 22.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
551 | 22.5k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
553 | 0 | c0->get_name(), c1->get_name(), name); |
554 | 0 | } |
555 | 22.5k | DCHECK(!(c0_const && c1_const)); |
556 | 22.5k | const ColumnString::Chars* c0_const_chars = nullptr; |
557 | 22.5k | const ColumnString::Chars* c1_const_chars = nullptr; |
558 | 22.5k | ColumnString::Offset c0_const_size = 0; |
559 | 22.5k | ColumnString::Offset c1_const_size = 0; |
560 | | |
561 | 22.5k | if (c0_const) { |
562 | 78 | const ColumnString* c0_const_string = |
563 | 78 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
564 | | |
565 | 78 | if (c0_const_string) { |
566 | 78 | c0_const_chars = &c0_const_string->get_chars(); |
567 | 78 | c0_const_size = c0_const_string->get_offsets()[0]; |
568 | 78 | } else { |
569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
570 | 0 | c0->get_name(), name); |
571 | 0 | } |
572 | 78 | } |
573 | | |
574 | 22.5k | if (c1_const) { |
575 | 21.6k | const ColumnString* c1_const_string = |
576 | 21.6k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
577 | | |
578 | 21.6k | if (c1_const_string) { |
579 | 21.6k | c1_const_chars = &c1_const_string->get_chars(); |
580 | 21.6k | c1_const_size = c1_const_string->get_offsets()[0]; |
581 | 21.6k | } else { |
582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
583 | 0 | c1->get_name(), name); |
584 | 0 | } |
585 | 21.6k | } |
586 | | |
587 | 22.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
588 | | |
589 | 22.5k | auto c_res = ColumnUInt8::create(); |
590 | 22.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
591 | 22.5k | vec_res.resize(c0->size()); |
592 | | |
593 | 22.5k | if (c0_string && c1_string) { |
594 | 879 | StringImpl::string_vector_string_vector( |
595 | 879 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
596 | 879 | c1_string->get_offsets(), vec_res); |
597 | 21.6k | } else if (c0_string && c1_const) { |
598 | 21.6k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
599 | 21.6k | *c1_const_chars, c1_const_size, vec_res); |
600 | 21.6k | } else if (c0_const && c1_string) { |
601 | 78 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
602 | 78 | c1_string->get_chars(), c1_string->get_offsets(), |
603 | 78 | vec_res); |
604 | 18.4E | } else { |
605 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
606 | 18.4E | c0->get_name(), c1->get_name(), name); |
607 | 18.4E | } |
608 | 22.5k | block.replace_by_position(result, std::move(c_res)); |
609 | 22.5k | return Status::OK(); |
610 | 22.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 20.9k | const IColumn* c1) const { | 547 | 20.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 20.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 20.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 20.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 20.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 553 | 0 | c0->get_name(), c1->get_name(), name); | 554 | 0 | } | 555 | 20.9k | DCHECK(!(c0_const && c1_const)); | 556 | 20.9k | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 20.9k | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 20.9k | ColumnString::Offset c0_const_size = 0; | 559 | 20.9k | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 20.9k | if (c0_const) { | 562 | 16 | const ColumnString* c0_const_string = | 563 | 16 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | | | 565 | 16 | if (c0_const_string) { | 566 | 16 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 16 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 16 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 16 | } | 573 | | | 574 | 20.9k | if (c1_const) { | 575 | 20.4k | const ColumnString* c1_const_string = | 576 | 20.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 20.4k | if (c1_const_string) { | 579 | 20.4k | c1_const_chars = &c1_const_string->get_chars(); | 580 | 20.4k | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 20.4k | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 20.4k | } | 586 | | | 587 | 20.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 20.9k | auto c_res = ColumnUInt8::create(); | 590 | 20.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 20.9k | vec_res.resize(c0->size()); | 592 | | | 593 | 20.9k | if (c0_string && c1_string) { | 594 | 434 | StringImpl::string_vector_string_vector( | 595 | 434 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 434 | c1_string->get_offsets(), vec_res); | 597 | 20.5k | } else if (c0_string && c1_const) { | 598 | 20.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 20.4k | *c1_const_chars, c1_const_size, vec_res); | 600 | 20.4k | } else if (c0_const && c1_string) { | 601 | 16 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 16 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 16 | vec_res); | 604 | 18.4E | } else { | 605 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 18.4E | c0->get_name(), c1->get_name(), name); | 607 | 18.4E | } | 608 | 20.9k | block.replace_by_position(result, std::move(c_res)); | 609 | 20.9k | return Status::OK(); | 610 | 20.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 115 | const IColumn* c1) const { | 547 | 115 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 115 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 115 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 115 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 115 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 553 | 0 | c0->get_name(), c1->get_name(), name); | 554 | 0 | } | 555 | 115 | DCHECK(!(c0_const && c1_const)); | 556 | 115 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 115 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 115 | ColumnString::Offset c0_const_size = 0; | 559 | 115 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 115 | if (c0_const) { | 562 | 0 | const ColumnString* c0_const_string = | 563 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | |
| 565 | 0 | if (c0_const_string) { | 566 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 0 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 0 | } | 573 | | | 574 | 115 | if (c1_const) { | 575 | 105 | const ColumnString* c1_const_string = | 576 | 105 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 105 | if (c1_const_string) { | 579 | 105 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 105 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 105 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 105 | } | 586 | | | 587 | 115 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 115 | auto c_res = ColumnUInt8::create(); | 590 | 115 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 115 | vec_res.resize(c0->size()); | 592 | | | 593 | 115 | if (c0_string && c1_string) { | 594 | 10 | StringImpl::string_vector_string_vector( | 595 | 10 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 10 | c1_string->get_offsets(), vec_res); | 597 | 105 | } else if (c0_string && c1_const) { | 598 | 105 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 105 | *c1_const_chars, c1_const_size, vec_res); | 600 | 105 | } else if (c0_const && c1_string) { | 601 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 0 | vec_res); | 604 | 0 | } else { | 605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 0 | c0->get_name(), c1->get_name(), name); | 607 | 0 | } | 608 | 115 | block.replace_by_position(result, std::move(c_res)); | 609 | 115 | return Status::OK(); | 610 | 115 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 222 | const IColumn* c1) const { | 547 | 222 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 222 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 222 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 222 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 222 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 553 | 0 | c0->get_name(), c1->get_name(), name); | 554 | 0 | } | 555 | 222 | DCHECK(!(c0_const && c1_const)); | 556 | 222 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 222 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 222 | ColumnString::Offset c0_const_size = 0; | 559 | 222 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 222 | if (c0_const) { | 562 | 0 | const ColumnString* c0_const_string = | 563 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | |
| 565 | 0 | if (c0_const_string) { | 566 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 0 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 0 | } | 573 | | | 574 | 222 | if (c1_const) { | 575 | 220 | const ColumnString* c1_const_string = | 576 | 220 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 220 | if (c1_const_string) { | 579 | 220 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 220 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 220 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 220 | } | 586 | | | 587 | 222 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 222 | auto c_res = ColumnUInt8::create(); | 590 | 222 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 222 | vec_res.resize(c0->size()); | 592 | | | 593 | 222 | if (c0_string && c1_string) { | 594 | 2 | StringImpl::string_vector_string_vector( | 595 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 2 | c1_string->get_offsets(), vec_res); | 597 | 220 | } else if (c0_string && c1_const) { | 598 | 220 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 220 | *c1_const_chars, c1_const_size, vec_res); | 600 | 220 | } else if (c0_const && c1_string) { | 601 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 0 | vec_res); | 604 | 0 | } else { | 605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 0 | c0->get_name(), c1->get_name(), name); | 607 | 0 | } | 608 | 222 | block.replace_by_position(result, std::move(c_res)); | 609 | 222 | return Status::OK(); | 610 | 222 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 397 | const IColumn* c1) const { | 547 | 397 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 397 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 397 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 397 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 397 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 553 | 0 | c0->get_name(), c1->get_name(), name); | 554 | 0 | } | 555 | 397 | DCHECK(!(c0_const && c1_const)); | 556 | 397 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 397 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 397 | ColumnString::Offset c0_const_size = 0; | 559 | 397 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 397 | if (c0_const) { | 562 | 56 | const ColumnString* c0_const_string = | 563 | 56 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | | | 565 | 56 | if (c0_const_string) { | 566 | 56 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 56 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 56 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 56 | } | 573 | | | 574 | 397 | if (c1_const) { | 575 | 305 | const ColumnString* c1_const_string = | 576 | 305 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 305 | if (c1_const_string) { | 579 | 305 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 305 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 305 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 305 | } | 586 | | | 587 | 397 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 397 | auto c_res = ColumnUInt8::create(); | 590 | 397 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 397 | vec_res.resize(c0->size()); | 592 | | | 593 | 397 | if (c0_string && c1_string) { | 594 | 36 | StringImpl::string_vector_string_vector( | 595 | 36 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 36 | c1_string->get_offsets(), vec_res); | 597 | 361 | } else if (c0_string && c1_const) { | 598 | 305 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 305 | *c1_const_chars, c1_const_size, vec_res); | 600 | 305 | } else if (c0_const && c1_string) { | 601 | 56 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 56 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 56 | vec_res); | 604 | 56 | } else { | 605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 0 | c0->get_name(), c1->get_name(), name); | 607 | 0 | } | 608 | 397 | block.replace_by_position(result, std::move(c_res)); | 609 | 397 | return Status::OK(); | 610 | 397 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 530 | const IColumn* c1) const { | 547 | 530 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 530 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 530 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 530 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 530 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 553 | 0 | c0->get_name(), c1->get_name(), name); | 554 | 0 | } | 555 | 530 | DCHECK(!(c0_const && c1_const)); | 556 | 530 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 530 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 530 | ColumnString::Offset c0_const_size = 0; | 559 | 530 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 530 | if (c0_const) { | 562 | 6 | const ColumnString* c0_const_string = | 563 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | | | 565 | 6 | if (c0_const_string) { | 566 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 6 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 6 | } | 573 | | | 574 | 530 | if (c1_const) { | 575 | 127 | const ColumnString* c1_const_string = | 576 | 127 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 127 | if (c1_const_string) { | 579 | 127 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 127 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 127 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 127 | } | 586 | | | 587 | 530 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 530 | auto c_res = ColumnUInt8::create(); | 590 | 530 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 530 | vec_res.resize(c0->size()); | 592 | | | 593 | 530 | if (c0_string && c1_string) { | 594 | 397 | StringImpl::string_vector_string_vector( | 595 | 397 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 397 | c1_string->get_offsets(), vec_res); | 597 | 397 | } else if (c0_string && c1_const) { | 598 | 127 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 127 | *c1_const_chars, c1_const_size, vec_res); | 600 | 127 | } else if (c0_const && c1_string) { | 601 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 6 | vec_res); | 604 | 6 | } else { | 605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 0 | c0->get_name(), c1->get_name(), name); | 607 | 0 | } | 608 | 530 | block.replace_by_position(result, std::move(c_res)); | 609 | 530 | return Status::OK(); | 610 | 530 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 363 | const IColumn* c1) const { | 547 | 363 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 363 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 363 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 363 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 363 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 553 | 0 | c0->get_name(), c1->get_name(), name); | 554 | 0 | } | 555 | 363 | DCHECK(!(c0_const && c1_const)); | 556 | 363 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 363 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 363 | ColumnString::Offset c0_const_size = 0; | 559 | 363 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 363 | if (c0_const) { | 562 | 0 | const ColumnString* c0_const_string = | 563 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | |
| 565 | 0 | if (c0_const_string) { | 566 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 0 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 0 | } | 573 | | | 574 | 363 | if (c1_const) { | 575 | 363 | const ColumnString* c1_const_string = | 576 | 363 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 363 | if (c1_const_string) { | 579 | 363 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 363 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 363 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 363 | } | 586 | | | 587 | 363 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 363 | auto c_res = ColumnUInt8::create(); | 590 | 363 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 363 | vec_res.resize(c0->size()); | 592 | | | 593 | 363 | if (c0_string && c1_string) { | 594 | 0 | StringImpl::string_vector_string_vector( | 595 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 0 | c1_string->get_offsets(), vec_res); | 597 | 363 | } else if (c0_string && c1_const) { | 598 | 363 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 363 | *c1_const_chars, c1_const_size, vec_res); | 600 | 363 | } else if (c0_const && c1_string) { | 601 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 0 | vec_res); | 604 | 0 | } else { | 605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 0 | c0->get_name(), c1->get_name(), name); | 607 | 0 | } | 608 | 363 | block.replace_by_position(result, std::move(c_res)); | 609 | 363 | return Status::OK(); | 610 | 363 | } |
|
611 | | |
612 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
613 | 161 | const IColumn* c1) const { |
614 | 161 | bool c0_const = is_column_const(*c0); |
615 | 161 | bool c1_const = is_column_const(*c1); |
616 | | |
617 | 161 | DCHECK(!(c0_const && c1_const)); |
618 | | |
619 | 161 | auto c_res = ColumnUInt8::create(); |
620 | 161 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
621 | 161 | vec_res.resize(c0->size()); |
622 | | |
623 | 161 | if (c0_const) { |
624 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
625 | 160 | } else if (c1_const) { |
626 | 140 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
627 | 140 | } else { |
628 | 20 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
629 | 20 | } |
630 | | |
631 | 161 | block.replace_by_position(result, std::move(c_res)); |
632 | 161 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 613 | 32 | const IColumn* c1) const { | 614 | 32 | bool c0_const = is_column_const(*c0); | 615 | 32 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 32 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 32 | auto c_res = ColumnUInt8::create(); | 620 | 32 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 32 | vec_res.resize(c0->size()); | 622 | | | 623 | 32 | if (c0_const) { | 624 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 31 | } else if (c1_const) { | 626 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 18 | } else { | 628 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 13 | } | 630 | | | 631 | 32 | block.replace_by_position(result, std::move(c_res)); | 632 | 32 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 613 | 9 | const IColumn* c1) const { | 614 | 9 | bool c0_const = is_column_const(*c0); | 615 | 9 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 9 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 9 | auto c_res = ColumnUInt8::create(); | 620 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 9 | vec_res.resize(c0->size()); | 622 | | | 623 | 9 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 9 | } else if (c1_const) { | 626 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 8 | } else { | 628 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 1 | } | 630 | | | 631 | 9 | block.replace_by_position(result, std::move(c_res)); | 632 | 9 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 613 | 9 | const IColumn* c1) const { | 614 | 9 | bool c0_const = is_column_const(*c0); | 615 | 9 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 9 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 9 | auto c_res = ColumnUInt8::create(); | 620 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 9 | vec_res.resize(c0->size()); | 622 | | | 623 | 9 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 9 | } else if (c1_const) { | 626 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 8 | } else { | 628 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 1 | } | 630 | | | 631 | 9 | block.replace_by_position(result, std::move(c_res)); | 632 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 613 | 45 | const IColumn* c1) const { | 614 | 45 | bool c0_const = is_column_const(*c0); | 615 | 45 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 45 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 45 | auto c_res = ColumnUInt8::create(); | 620 | 45 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 45 | vec_res.resize(c0->size()); | 622 | | | 623 | 45 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 45 | } else if (c1_const) { | 626 | 44 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 44 | } else { | 628 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 1 | } | 630 | | | 631 | 45 | block.replace_by_position(result, std::move(c_res)); | 632 | 45 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 613 | 12 | const IColumn* c1) const { | 614 | 12 | bool c0_const = is_column_const(*c0); | 615 | 12 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 12 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 12 | auto c_res = ColumnUInt8::create(); | 620 | 12 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 12 | vec_res.resize(c0->size()); | 622 | | | 623 | 12 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 12 | } else if (c1_const) { | 626 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 8 | } else { | 628 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 4 | } | 630 | | | 631 | 12 | block.replace_by_position(result, std::move(c_res)); | 632 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 613 | 54 | const IColumn* c1) const { | 614 | 54 | bool c0_const = is_column_const(*c0); | 615 | 54 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 54 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 54 | auto c_res = ColumnUInt8::create(); | 620 | 54 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 54 | vec_res.resize(c0->size()); | 622 | | | 623 | 54 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 54 | } else if (c1_const) { | 626 | 54 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 54 | } else { | 628 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 0 | } | 630 | | | 631 | 54 | block.replace_by_position(result, std::move(c_res)); | 632 | 54 | } |
|
633 | | |
634 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
635 | 161 | const ColumnWithTypeAndName& c1) const { |
636 | 161 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
637 | 161 | return Status::OK(); |
638 | 161 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 635 | 32 | const ColumnWithTypeAndName& c1) const { | 636 | 32 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 32 | return Status::OK(); | 638 | 32 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 635 | 9 | const ColumnWithTypeAndName& c1) const { | 636 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 9 | return Status::OK(); | 638 | 9 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 635 | 9 | const ColumnWithTypeAndName& c1) const { | 636 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 9 | return Status::OK(); | 638 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 635 | 45 | const ColumnWithTypeAndName& c1) const { | 636 | 45 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 45 | return Status::OK(); | 638 | 45 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 635 | 12 | const ColumnWithTypeAndName& c1) const { | 636 | 12 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 12 | return Status::OK(); | 638 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 635 | 54 | const ColumnWithTypeAndName& c1) const { | 636 | 54 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 54 | return Status::OK(); | 638 | 54 | } |
|
639 | | |
640 | | template <typename TemporalValue> |
641 | | static int compare_timestamp_ns_with_temporal(const TimeStampNsValue& timestamp, |
642 | | const TemporalValue& temporal, |
643 | 382 | uint32_t temporal_nanosecond) { |
644 | 382 | const auto timestamp_datetime = timestamp.to_datetime(); |
645 | 1.52k | const auto compare_part = [](auto left, auto right) { |
646 | 1.52k | if (left < right) { |
647 | 140 | return -1; |
648 | 140 | } |
649 | 1.38k | if (left > right) { |
650 | 158 | return 1; |
651 | 158 | } |
652 | 1.23k | return 0; |
653 | 1.38k | }; Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIllEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhhEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhtEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIjjEEDaS9_SC_ _ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Line | Count | Source | 645 | 12 | const auto compare_part = [](auto left, auto right) { | 646 | 12 | if (left < right) { | 647 | 2 | return -1; | 648 | 2 | } | 649 | 10 | if (left > right) { | 650 | 0 | return 1; | 651 | 0 | } | 652 | 10 | return 0; | 653 | 10 | }; |
_ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Line | Count | Source | 645 | 44 | const auto compare_part = [](auto left, auto right) { | 646 | 44 | if (left < right) { | 647 | 0 | return -1; | 648 | 0 | } | 649 | 44 | if (left > right) { | 650 | 4 | return 1; | 651 | 4 | } | 652 | 40 | return 0; | 653 | 44 | }; |
_ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ Line | Count | Source | 645 | 6 | const auto compare_part = [](auto left, auto right) { | 646 | 6 | if (left < right) { | 647 | 0 | return -1; | 648 | 0 | } | 649 | 6 | if (left > right) { | 650 | 2 | return 1; | 651 | 2 | } | 652 | 4 | return 0; | 653 | 6 | }; |
_ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Line | Count | Source | 645 | 186 | const auto compare_part = [](auto left, auto right) { | 646 | 186 | if (left < right) { | 647 | 61 | return -1; | 648 | 61 | } | 649 | 125 | if (left > right) { | 650 | 20 | return 1; | 651 | 20 | } | 652 | 105 | return 0; | 653 | 125 | }; |
_ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Line | Count | Source | 645 | 493 | const auto compare_part = [](auto left, auto right) { | 646 | 493 | if (left < right) { | 647 | 4 | return -1; | 648 | 4 | } | 649 | 489 | if (left > right) { | 650 | 16 | return 1; | 651 | 16 | } | 652 | 473 | return 0; | 653 | 489 | }; |
_ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ Line | Count | Source | 645 | 85 | const auto compare_part = [](auto left, auto right) { | 646 | 85 | if (left < right) { | 647 | 1 | return -1; | 648 | 1 | } | 649 | 84 | if (left > right) { | 650 | 39 | return 1; | 651 | 39 | } | 652 | 45 | return 0; | 653 | 84 | }; |
_ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIllEEDaSD_SG_ Line | Count | Source | 645 | 10 | const auto compare_part = [](auto left, auto right) { | 646 | 10 | if (left < right) { | 647 | 4 | return -1; | 648 | 4 | } | 649 | 6 | if (left > right) { | 650 | 3 | return 1; | 651 | 3 | } | 652 | 3 | return 0; | 653 | 6 | }; |
_ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIhiEEDaSD_SG_ Line | Count | Source | 645 | 13 | const auto compare_part = [](auto left, auto right) { | 646 | 13 | if (left < right) { | 647 | 1 | return -1; | 648 | 1 | } | 649 | 12 | if (left > right) { | 650 | 0 | return 1; | 651 | 0 | } | 652 | 12 | return 0; | 653 | 12 | }; |
_ZZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIjjEEDaSD_SG_ Line | Count | Source | 645 | 2 | const auto compare_part = [](auto left, auto right) { | 646 | 2 | if (left < right) { | 647 | 0 | return -1; | 648 | 0 | } | 649 | 2 | if (left > right) { | 650 | 1 | return 1; | 651 | 1 | } | 652 | 1 | return 0; | 653 | 2 | }; |
Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIllEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhhEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhtEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIjjEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIllEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIhiEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIjjEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIllEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhhEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhtEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIjjEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Line | Count | Source | 645 | 39 | const auto compare_part = [](auto left, auto right) { | 646 | 39 | if (left < right) { | 647 | 11 | return -1; | 648 | 11 | } | 649 | 28 | if (left > right) { | 650 | 7 | return 1; | 651 | 7 | } | 652 | 21 | return 0; | 653 | 28 | }; |
_ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Line | Count | Source | 645 | 105 | const auto compare_part = [](auto left, auto right) { | 646 | 105 | if (left < right) { | 647 | 2 | return -1; | 648 | 2 | } | 649 | 103 | if (left > right) { | 650 | 0 | return 1; | 651 | 0 | } | 652 | 103 | return 0; | 653 | 103 | }; |
_ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ Line | Count | Source | 645 | 19 | const auto compare_part = [](auto left, auto right) { | 646 | 19 | if (left < right) { | 647 | 2 | return -1; | 648 | 2 | } | 649 | 17 | if (left > right) { | 650 | 9 | return 1; | 651 | 9 | } | 652 | 8 | return 0; | 653 | 17 | }; |
Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIllEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIhiEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIjjEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIllEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhhEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhtEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIjjEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Line | Count | Source | 645 | 24 | const auto compare_part = [](auto left, auto right) { | 646 | 24 | if (left < right) { | 647 | 7 | return -1; | 648 | 7 | } | 649 | 17 | if (left > right) { | 650 | 4 | return 1; | 651 | 4 | } | 652 | 13 | return 0; | 653 | 17 | }; |
_ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Line | Count | Source | 645 | 65 | const auto compare_part = [](auto left, auto right) { | 646 | 65 | if (left < right) { | 647 | 0 | return -1; | 648 | 0 | } | 649 | 65 | if (left > right) { | 650 | 3 | return 1; | 651 | 3 | } | 652 | 62 | return 0; | 653 | 65 | }; |
_ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ Line | Count | Source | 645 | 10 | const auto compare_part = [](auto left, auto right) { | 646 | 10 | if (left < right) { | 647 | 0 | return -1; | 648 | 0 | } | 649 | 10 | if (left > right) { | 650 | 5 | return 1; | 651 | 5 | } | 652 | 5 | return 0; | 653 | 10 | }; |
Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIllEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIhiEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIjjEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIllEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhhEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhtEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIjjEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Line | Count | Source | 645 | 83 | const auto compare_part = [](auto left, auto right) { | 646 | 83 | if (left < right) { | 647 | 30 | return -1; | 648 | 30 | } | 649 | 53 | if (left > right) { | 650 | 9 | return 1; | 651 | 9 | } | 652 | 44 | return 0; | 653 | 53 | }; |
_ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Line | Count | Source | 645 | 204 | const auto compare_part = [](auto left, auto right) { | 646 | 204 | if (left < right) { | 647 | 2 | return -1; | 648 | 2 | } | 649 | 202 | if (left > right) { | 650 | 11 | return 1; | 651 | 11 | } | 652 | 191 | return 0; | 653 | 202 | }; |
_ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ Line | Count | Source | 645 | 31 | const auto compare_part = [](auto left, auto right) { | 646 | 31 | if (left < right) { | 647 | 1 | return -1; | 648 | 1 | } | 649 | 30 | if (left > right) { | 650 | 14 | return 1; | 651 | 14 | } | 652 | 16 | return 0; | 653 | 30 | }; |
_ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIllEEDaSD_SG_ Line | Count | Source | 645 | 4 | const auto compare_part = [](auto left, auto right) { | 646 | 4 | if (left < right) { | 647 | 2 | return -1; | 648 | 2 | } | 649 | 2 | if (left > right) { | 650 | 2 | return 1; | 651 | 2 | } | 652 | 0 | return 0; | 653 | 2 | }; |
Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIhiEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIjjEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIllEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhhEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIhtEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_jENKUlS9_T0_E_clIjjEEDaS9_SC_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIllEEDaSB_SE_ Line | Count | Source | 645 | 24 | const auto compare_part = [](auto left, auto right) { | 646 | 24 | if (left < right) { | 647 | 8 | return -1; | 648 | 8 | } | 649 | 16 | if (left > right) { | 650 | 4 | return 1; | 651 | 4 | } | 652 | 12 | return 0; | 653 | 16 | }; |
_ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIhhEEDaSB_SE_ Line | Count | Source | 645 | 60 | const auto compare_part = [](auto left, auto right) { | 646 | 60 | if (left < right) { | 647 | 2 | return -1; | 648 | 2 | } | 649 | 58 | if (left > right) { | 650 | 0 | return 1; | 651 | 0 | } | 652 | 58 | return 0; | 653 | 58 | }; |
_ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSB_T0_E_clIjjEEDaSB_SE_ Line | Count | Source | 645 | 10 | const auto compare_part = [](auto left, auto right) { | 646 | 10 | if (left < right) { | 647 | 0 | return -1; | 648 | 0 | } | 649 | 10 | if (left > right) { | 650 | 5 | return 1; | 651 | 5 | } | 652 | 5 | return 0; | 653 | 10 | }; |
Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIllEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIhiEEDaSD_SG_ Unexecuted instantiation: _ZZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_jENKUlSD_T0_E_clIjjEEDaSD_SG_ |
654 | 382 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), |
655 | 382 | static_cast<int64_t>(temporal.year())); |
656 | 382 | if (comparison == 0) { |
657 | 208 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); |
658 | 208 | } |
659 | 382 | if (comparison == 0) { |
660 | 208 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); |
661 | 208 | } |
662 | 382 | if (comparison == 0) { |
663 | 208 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); |
664 | 208 | } |
665 | 382 | if (comparison == 0) { |
666 | 187 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); |
667 | 187 | } |
668 | 382 | if (comparison == 0) { |
669 | 173 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); |
670 | 173 | } |
671 | 382 | if (comparison == 0) { |
672 | 163 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); |
673 | 163 | } |
674 | 382 | return comparison; |
675 | 382 | } Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_j _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j Line | Count | Source | 643 | 12 | uint32_t temporal_nanosecond) { | 644 | 12 | const auto timestamp_datetime = timestamp.to_datetime(); | 645 | 12 | const auto compare_part = [](auto left, auto right) { | 646 | 12 | if (left < right) { | 647 | 12 | return -1; | 648 | 12 | } | 649 | 12 | if (left > right) { | 650 | 12 | return 1; | 651 | 12 | } | 652 | 12 | return 0; | 653 | 12 | }; | 654 | 12 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), | 655 | 12 | static_cast<int64_t>(temporal.year())); | 656 | 12 | if (comparison == 0) { | 657 | 10 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); | 658 | 10 | } | 659 | 12 | if (comparison == 0) { | 660 | 10 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); | 661 | 10 | } | 662 | 12 | if (comparison == 0) { | 663 | 10 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); | 664 | 10 | } | 665 | 12 | if (comparison == 0) { | 666 | 8 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); | 667 | 8 | } | 668 | 12 | if (comparison == 0) { | 669 | 6 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); | 670 | 6 | } | 671 | 12 | if (comparison == 0) { | 672 | 6 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); | 673 | 6 | } | 674 | 12 | return comparison; | 675 | 12 | } |
_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j Line | Count | Source | 643 | 186 | uint32_t temporal_nanosecond) { | 644 | 186 | const auto timestamp_datetime = timestamp.to_datetime(); | 645 | 186 | const auto compare_part = [](auto left, auto right) { | 646 | 186 | if (left < right) { | 647 | 186 | return -1; | 648 | 186 | } | 649 | 186 | if (left > right) { | 650 | 186 | return 1; | 651 | 186 | } | 652 | 186 | return 0; | 653 | 186 | }; | 654 | 186 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), | 655 | 186 | static_cast<int64_t>(temporal.year())); | 656 | 186 | if (comparison == 0) { | 657 | 105 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); | 658 | 105 | } | 659 | 186 | if (comparison == 0) { | 660 | 105 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); | 661 | 105 | } | 662 | 186 | if (comparison == 0) { | 663 | 105 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); | 664 | 105 | } | 665 | 186 | if (comparison == 0) { | 666 | 93 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); | 667 | 93 | } | 668 | 186 | if (comparison == 0) { | 669 | 85 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); | 670 | 85 | } | 671 | 186 | if (comparison == 0) { | 672 | 85 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); | 673 | 85 | } | 674 | 186 | return comparison; | 675 | 186 | } |
_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_j Line | Count | Source | 643 | 10 | uint32_t temporal_nanosecond) { | 644 | 10 | const auto timestamp_datetime = timestamp.to_datetime(); | 645 | 10 | const auto compare_part = [](auto left, auto right) { | 646 | 10 | if (left < right) { | 647 | 10 | return -1; | 648 | 10 | } | 649 | 10 | if (left > right) { | 650 | 10 | return 1; | 651 | 10 | } | 652 | 10 | return 0; | 653 | 10 | }; | 654 | 10 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), | 655 | 10 | static_cast<int64_t>(temporal.year())); | 656 | 10 | if (comparison == 0) { | 657 | 3 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); | 658 | 3 | } | 659 | 10 | if (comparison == 0) { | 660 | 3 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); | 661 | 3 | } | 662 | 10 | if (comparison == 0) { | 663 | 3 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); | 664 | 3 | } | 665 | 10 | if (comparison == 0) { | 666 | 2 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); | 667 | 2 | } | 668 | 10 | if (comparison == 0) { | 669 | 2 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); | 670 | 2 | } | 671 | 10 | if (comparison == 0) { | 672 | 2 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); | 673 | 2 | } | 674 | 10 | return comparison; | 675 | 10 | } |
Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j _ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j Line | Count | Source | 643 | 39 | uint32_t temporal_nanosecond) { | 644 | 39 | const auto timestamp_datetime = timestamp.to_datetime(); | 645 | 39 | const auto compare_part = [](auto left, auto right) { | 646 | 39 | if (left < right) { | 647 | 39 | return -1; | 648 | 39 | } | 649 | 39 | if (left > right) { | 650 | 39 | return 1; | 651 | 39 | } | 652 | 39 | return 0; | 653 | 39 | }; | 654 | 39 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), | 655 | 39 | static_cast<int64_t>(temporal.year())); | 656 | 39 | if (comparison == 0) { | 657 | 21 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); | 658 | 21 | } | 659 | 39 | if (comparison == 0) { | 660 | 21 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); | 661 | 21 | } | 662 | 39 | if (comparison == 0) { | 663 | 21 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); | 664 | 21 | } | 665 | 39 | if (comparison == 0) { | 666 | 21 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); | 667 | 21 | } | 668 | 39 | if (comparison == 0) { | 669 | 21 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); | 670 | 21 | } | 671 | 39 | if (comparison == 0) { | 672 | 19 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); | 673 | 19 | } | 674 | 39 | return comparison; | 675 | 39 | } |
Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j _ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j Line | Count | Source | 643 | 24 | uint32_t temporal_nanosecond) { | 644 | 24 | const auto timestamp_datetime = timestamp.to_datetime(); | 645 | 24 | const auto compare_part = [](auto left, auto right) { | 646 | 24 | if (left < right) { | 647 | 24 | return -1; | 648 | 24 | } | 649 | 24 | if (left > right) { | 650 | 24 | return 1; | 651 | 24 | } | 652 | 24 | return 0; | 653 | 24 | }; | 654 | 24 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), | 655 | 24 | static_cast<int64_t>(temporal.year())); | 656 | 24 | if (comparison == 0) { | 657 | 13 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); | 658 | 13 | } | 659 | 24 | if (comparison == 0) { | 660 | 13 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); | 661 | 13 | } | 662 | 24 | if (comparison == 0) { | 663 | 13 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); | 664 | 13 | } | 665 | 24 | if (comparison == 0) { | 666 | 13 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); | 667 | 13 | } | 668 | 24 | if (comparison == 0) { | 669 | 13 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); | 670 | 13 | } | 671 | 24 | if (comparison == 0) { | 672 | 10 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); | 673 | 10 | } | 674 | 24 | return comparison; | 675 | 24 | } |
Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j _ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j Line | Count | Source | 643 | 83 | uint32_t temporal_nanosecond) { | 644 | 83 | const auto timestamp_datetime = timestamp.to_datetime(); | 645 | 83 | const auto compare_part = [](auto left, auto right) { | 646 | 83 | if (left < right) { | 647 | 83 | return -1; | 648 | 83 | } | 649 | 83 | if (left > right) { | 650 | 83 | return 1; | 651 | 83 | } | 652 | 83 | return 0; | 653 | 83 | }; | 654 | 83 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), | 655 | 83 | static_cast<int64_t>(temporal.year())); | 656 | 83 | if (comparison == 0) { | 657 | 44 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); | 658 | 44 | } | 659 | 83 | if (comparison == 0) { | 660 | 44 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); | 661 | 44 | } | 662 | 83 | if (comparison == 0) { | 663 | 44 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); | 664 | 44 | } | 665 | 83 | if (comparison == 0) { | 666 | 38 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); | 667 | 38 | } | 668 | 83 | if (comparison == 0) { | 669 | 34 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); | 670 | 34 | } | 671 | 83 | if (comparison == 0) { | 672 | 31 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); | 673 | 31 | } | 674 | 83 | return comparison; | 675 | 83 | } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_j Line | Count | Source | 643 | 4 | uint32_t temporal_nanosecond) { | 644 | 4 | const auto timestamp_datetime = timestamp.to_datetime(); | 645 | 4 | const auto compare_part = [](auto left, auto right) { | 646 | 4 | if (left < right) { | 647 | 4 | return -1; | 648 | 4 | } | 649 | 4 | if (left > right) { | 650 | 4 | return 1; | 651 | 4 | } | 652 | 4 | return 0; | 653 | 4 | }; | 654 | 4 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), | 655 | 4 | static_cast<int64_t>(temporal.year())); | 656 | 4 | if (comparison == 0) { | 657 | 0 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); | 658 | 0 | } | 659 | 4 | if (comparison == 0) { | 660 | 0 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); | 661 | 0 | } | 662 | 4 | if (comparison == 0) { | 663 | 0 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); | 664 | 0 | } | 665 | 4 | if (comparison == 0) { | 666 | 0 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); | 667 | 0 | } | 668 | 4 | if (comparison == 0) { | 669 | 0 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); | 670 | 0 | } | 671 | 4 | if (comparison == 0) { | 672 | 0 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); | 673 | 0 | } | 674 | 4 | return comparison; | 675 | 4 | } |
Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_16VecDateTimeValueEEEiRKNS_16TimeStampNsValueERKT_j Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j _ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEiRKNS_16TimeStampNsValueERKT_j Line | Count | Source | 643 | 24 | uint32_t temporal_nanosecond) { | 644 | 24 | const auto timestamp_datetime = timestamp.to_datetime(); | 645 | 24 | const auto compare_part = [](auto left, auto right) { | 646 | 24 | if (left < right) { | 647 | 24 | return -1; | 648 | 24 | } | 649 | 24 | if (left > right) { | 650 | 24 | return 1; | 651 | 24 | } | 652 | 24 | return 0; | 653 | 24 | }; | 654 | 24 | int comparison = compare_part(static_cast<int64_t>(timestamp_datetime.year()), | 655 | 24 | static_cast<int64_t>(temporal.year())); | 656 | 24 | if (comparison == 0) { | 657 | 12 | comparison = compare_part(timestamp_datetime.month(), temporal.month()); | 658 | 12 | } | 659 | 24 | if (comparison == 0) { | 660 | 12 | comparison = compare_part(timestamp_datetime.day(), temporal.day()); | 661 | 12 | } | 662 | 24 | if (comparison == 0) { | 663 | 12 | comparison = compare_part(timestamp_datetime.hour(), temporal.hour()); | 664 | 12 | } | 665 | 24 | if (comparison == 0) { | 666 | 12 | comparison = compare_part(timestamp_datetime.minute(), temporal.minute()); | 667 | 12 | } | 668 | 24 | if (comparison == 0) { | 669 | 12 | comparison = compare_part(timestamp_datetime.second(), temporal.second()); | 670 | 12 | } | 671 | 24 | if (comparison == 0) { | 672 | 10 | comparison = compare_part(timestamp.nanosecond(), temporal_nanosecond); | 673 | 10 | } | 674 | 24 | return comparison; | 675 | 24 | } |
Unexecuted instantiation: _ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE34compare_timestamp_ns_with_temporalIN4cctz6detail10civil_timeINS6_10second_tagEEEEEiRKNS_16TimeStampNsValueERKT_j |
676 | | |
677 | | template <PrimitiveType TemporalPType, bool timestamp_ns_on_left> |
678 | | Status execute_timestamp_ns_temporal(FunctionContext* context, Block& block, uint32_t result, |
679 | | const ColumnPtr& left_column, |
680 | | const ColumnPtr& right_column, |
681 | 77 | size_t input_rows_count) const { |
682 | 77 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || |
683 | 77 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || |
684 | 77 | TemporalPType == TYPE_TIMESTAMPTZ); |
685 | 77 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; |
686 | 77 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; |
687 | 77 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); |
688 | 77 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); |
689 | 77 | const auto& timestamps = |
690 | 77 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); |
691 | 77 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; |
692 | 77 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; |
693 | 77 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); |
694 | | |
695 | 77 | auto result_column = ColumnUInt8::create(input_rows_count); |
696 | 77 | auto& result_data = result_column->get_data(); |
697 | 459 | for (size_t row = 0; row < input_rows_count; ++row) { |
698 | 382 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; |
699 | 382 | const auto& temporal = |
700 | 382 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); |
701 | 382 | int comparison; |
702 | 382 | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { |
703 | 14 | const auto utc_datetime = temporal.utc_dt(); |
704 | 14 | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), |
705 | 14 | utc_datetime.day(), utc_datetime.hour(), |
706 | 14 | utc_datetime.minute(), utc_datetime.second()); |
707 | 14 | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); |
708 | 14 | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); |
709 | | // Keep the signed civil year across date boundaries. NULL payloads are |
710 | | // normalized without validation; the nullable framework masks their results. |
711 | 14 | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, |
712 | 14 | utc_datetime.microsecond() * 1000); |
713 | 368 | } else { |
714 | 368 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, |
715 | 368 | temporal.microsecond() * 1000); |
716 | 368 | } |
717 | 382 | if constexpr (!timestamp_ns_on_left) { |
718 | 144 | comparison = -comparison; |
719 | 144 | } |
720 | 382 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); |
721 | 382 | } |
722 | 77 | block.replace_by_position(result, std::move(result_column)); |
723 | 77 | return Status::OK(); |
724 | 77 | } Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 1 | size_t input_rows_count) const { | 682 | 1 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 1 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 1 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 1 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 1 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 1 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 1 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 1 | const auto& timestamps = | 690 | 1 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 1 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 1 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 1 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 1 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 1 | auto& result_data = result_column->get_data(); | 697 | 7 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 6 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 6 | const auto& temporal = | 700 | 6 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 6 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 6 | } else { | 714 | 6 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 6 | temporal.microsecond() * 1000); | 716 | 6 | } | 717 | | if constexpr (!timestamp_ns_on_left) { | 718 | | comparison = -comparison; | 719 | | } | 720 | 6 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 6 | } | 722 | 1 | block.replace_by_position(result, std::move(result_column)); | 723 | 1 | return Status::OK(); | 724 | 1 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 1 | size_t input_rows_count) const { | 682 | 1 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 1 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 1 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 1 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 1 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 1 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 1 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 1 | const auto& timestamps = | 690 | 1 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 1 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 1 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 1 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 1 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 1 | auto& result_data = result_column->get_data(); | 697 | 7 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 6 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 6 | const auto& temporal = | 700 | 6 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 6 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 6 | } else { | 714 | 6 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 6 | temporal.microsecond() * 1000); | 716 | 6 | } | 717 | 6 | if constexpr (!timestamp_ns_on_left) { | 718 | 6 | comparison = -comparison; | 719 | 6 | } | 720 | 6 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 6 | } | 722 | 1 | block.replace_by_position(result, std::move(result_column)); | 723 | 1 | return Status::OK(); | 724 | 1 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 21 | size_t input_rows_count) const { | 682 | 21 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 21 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 21 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 21 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 21 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 21 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 21 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 21 | const auto& timestamps = | 690 | 21 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 21 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 21 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 21 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 21 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 21 | auto& result_data = result_column->get_data(); | 697 | 137 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 116 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 116 | const auto& temporal = | 700 | 116 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 116 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 116 | } else { | 714 | 116 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 116 | temporal.microsecond() * 1000); | 716 | 116 | } | 717 | | if constexpr (!timestamp_ns_on_left) { | 718 | | comparison = -comparison; | 719 | | } | 720 | 116 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 116 | } | 722 | 21 | block.replace_by_position(result, std::move(result_column)); | 723 | 21 | return Status::OK(); | 724 | 21 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 12 | size_t input_rows_count) const { | 682 | 12 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 12 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 12 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 12 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 12 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 12 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 12 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 12 | const auto& timestamps = | 690 | 12 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 12 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 12 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 12 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 12 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 12 | auto& result_data = result_column->get_data(); | 697 | 82 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 70 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 70 | const auto& temporal = | 700 | 70 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 70 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 70 | } else { | 714 | 70 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 70 | temporal.microsecond() * 1000); | 716 | 70 | } | 717 | 70 | if constexpr (!timestamp_ns_on_left) { | 718 | 70 | comparison = -comparison; | 719 | 70 | } | 720 | 70 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 70 | } | 722 | 12 | block.replace_by_position(result, std::move(result_column)); | 723 | 12 | return Status::OK(); | 724 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 2 | size_t input_rows_count) const { | 682 | 2 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 2 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 2 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 2 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 2 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 2 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 2 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 2 | const auto& timestamps = | 690 | 2 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 2 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 2 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 2 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 2 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 2 | auto& result_data = result_column->get_data(); | 697 | 4 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 2 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 2 | const auto& temporal = | 700 | 2 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 2 | int comparison; | 702 | 2 | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | 2 | const auto utc_datetime = temporal.utc_dt(); | 704 | 2 | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | 2 | utc_datetime.day(), utc_datetime.hour(), | 706 | 2 | utc_datetime.minute(), utc_datetime.second()); | 707 | 2 | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | 2 | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | 2 | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | 2 | utc_datetime.microsecond() * 1000); | 713 | | } else { | 714 | | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | | temporal.microsecond() * 1000); | 716 | | } | 717 | | if constexpr (!timestamp_ns_on_left) { | 718 | | comparison = -comparison; | 719 | | } | 720 | 2 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 2 | } | 722 | 2 | block.replace_by_position(result, std::move(result_column)); | 723 | 2 | return Status::OK(); | 724 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 3 | size_t input_rows_count) const { | 682 | 3 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 3 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 3 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 3 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 3 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 3 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 3 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 3 | const auto& timestamps = | 690 | 3 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 3 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 3 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 3 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 3 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 3 | auto& result_data = result_column->get_data(); | 697 | 11 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 8 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 8 | const auto& temporal = | 700 | 8 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 8 | int comparison; | 702 | 8 | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | 8 | const auto utc_datetime = temporal.utc_dt(); | 704 | 8 | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | 8 | utc_datetime.day(), utc_datetime.hour(), | 706 | 8 | utc_datetime.minute(), utc_datetime.second()); | 707 | 8 | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | 8 | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | 8 | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | 8 | utc_datetime.microsecond() * 1000); | 713 | | } else { | 714 | | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | | temporal.microsecond() * 1000); | 716 | | } | 717 | 8 | if constexpr (!timestamp_ns_on_left) { | 718 | 8 | comparison = -comparison; | 719 | 8 | } | 720 | 8 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 8 | } | 722 | 3 | block.replace_by_position(result, std::move(result_column)); | 723 | 3 | return Status::OK(); | 724 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 7 | size_t input_rows_count) const { | 682 | 7 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 7 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 7 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 7 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 7 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 7 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 7 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 7 | const auto& timestamps = | 690 | 7 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 7 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 7 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 7 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 7 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 7 | auto& result_data = result_column->get_data(); | 697 | 37 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 30 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 30 | const auto& temporal = | 700 | 30 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 30 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 30 | } else { | 714 | 30 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 30 | temporal.microsecond() * 1000); | 716 | 30 | } | 717 | | if constexpr (!timestamp_ns_on_left) { | 718 | | comparison = -comparison; | 719 | | } | 720 | 30 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 30 | } | 722 | 7 | block.replace_by_position(result, std::move(result_column)); | 723 | 7 | return Status::OK(); | 724 | 7 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 3 | size_t input_rows_count) const { | 682 | 3 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 3 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 3 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 3 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 3 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 3 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 3 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 3 | const auto& timestamps = | 690 | 3 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 3 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 3 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 3 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 3 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 3 | auto& result_data = result_column->get_data(); | 697 | 12 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 9 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 9 | const auto& temporal = | 700 | 9 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 9 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 9 | } else { | 714 | 9 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 9 | temporal.microsecond() * 1000); | 716 | 9 | } | 717 | 9 | if constexpr (!timestamp_ns_on_left) { | 718 | 9 | comparison = -comparison; | 719 | 9 | } | 720 | 9 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 9 | } | 722 | 3 | block.replace_by_position(result, std::move(result_column)); | 723 | 3 | return Status::OK(); | 724 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 3 | size_t input_rows_count) const { | 682 | 3 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 3 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 3 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 3 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 3 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 3 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 3 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 3 | const auto& timestamps = | 690 | 3 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 3 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 3 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 3 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 3 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 3 | auto& result_data = result_column->get_data(); | 697 | 20 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 17 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 17 | const auto& temporal = | 700 | 17 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 17 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 17 | } else { | 714 | 17 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 17 | temporal.microsecond() * 1000); | 716 | 17 | } | 717 | | if constexpr (!timestamp_ns_on_left) { | 718 | | comparison = -comparison; | 719 | | } | 720 | 17 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 17 | } | 722 | 3 | block.replace_by_position(result, std::move(result_column)); | 723 | 3 | return Status::OK(); | 724 | 3 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 1 | size_t input_rows_count) const { | 682 | 1 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 1 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 1 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 1 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 1 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 1 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 1 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 1 | const auto& timestamps = | 690 | 1 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 1 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 1 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 1 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 1 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 1 | auto& result_data = result_column->get_data(); | 697 | 8 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 7 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 7 | const auto& temporal = | 700 | 7 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 7 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 7 | } else { | 714 | 7 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 7 | temporal.microsecond() * 1000); | 716 | 7 | } | 717 | 7 | if constexpr (!timestamp_ns_on_left) { | 718 | 7 | comparison = -comparison; | 719 | 7 | } | 720 | 7 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 7 | } | 722 | 1 | block.replace_by_position(result, std::move(result_column)); | 723 | 1 | return Status::OK(); | 724 | 1 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 9 | size_t input_rows_count) const { | 682 | 9 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 9 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 9 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 9 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 9 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 9 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 9 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 9 | const auto& timestamps = | 690 | 9 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 9 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 9 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 9 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 9 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 9 | auto& result_data = result_column->get_data(); | 697 | 57 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 48 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 48 | const auto& temporal = | 700 | 48 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 48 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 48 | } else { | 714 | 48 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 48 | temporal.microsecond() * 1000); | 716 | 48 | } | 717 | | if constexpr (!timestamp_ns_on_left) { | 718 | | comparison = -comparison; | 719 | | } | 720 | 48 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 48 | } | 722 | 9 | block.replace_by_position(result, std::move(result_column)); | 723 | 9 | return Status::OK(); | 724 | 9 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 6 | size_t input_rows_count) const { | 682 | 6 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 6 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 6 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 6 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 6 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 6 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 6 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 6 | const auto& timestamps = | 690 | 6 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 6 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 6 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 6 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 6 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 6 | auto& result_data = result_column->get_data(); | 697 | 41 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 35 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 35 | const auto& temporal = | 700 | 35 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 35 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 35 | } else { | 714 | 35 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 35 | temporal.microsecond() * 1000); | 716 | 35 | } | 717 | 35 | if constexpr (!timestamp_ns_on_left) { | 718 | 35 | comparison = -comparison; | 719 | 35 | } | 720 | 35 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 35 | } | 722 | 6 | block.replace_by_position(result, std::move(result_column)); | 723 | 6 | return Status::OK(); | 724 | 6 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 2 | size_t input_rows_count) const { | 682 | 2 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 2 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 2 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 2 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 2 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 2 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 2 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 2 | const auto& timestamps = | 690 | 2 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 2 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 2 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 2 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 2 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 2 | auto& result_data = result_column->get_data(); | 697 | 4 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 2 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 2 | const auto& temporal = | 700 | 2 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 2 | int comparison; | 702 | 2 | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | 2 | const auto utc_datetime = temporal.utc_dt(); | 704 | 2 | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | 2 | utc_datetime.day(), utc_datetime.hour(), | 706 | 2 | utc_datetime.minute(), utc_datetime.second()); | 707 | 2 | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | 2 | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | 2 | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | 2 | utc_datetime.microsecond() * 1000); | 713 | | } else { | 714 | | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | | temporal.microsecond() * 1000); | 716 | | } | 717 | | if constexpr (!timestamp_ns_on_left) { | 718 | | comparison = -comparison; | 719 | | } | 720 | 2 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 2 | } | 722 | 2 | block.replace_by_position(result, std::move(result_column)); | 723 | 2 | return Status::OK(); | 724 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 2 | size_t input_rows_count) const { | 682 | 2 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 2 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 2 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 2 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 2 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 2 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 2 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 2 | const auto& timestamps = | 690 | 2 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 2 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 2 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 2 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 2 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 2 | auto& result_data = result_column->get_data(); | 697 | 4 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 2 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 2 | const auto& temporal = | 700 | 2 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 2 | int comparison; | 702 | 2 | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | 2 | const auto utc_datetime = temporal.utc_dt(); | 704 | 2 | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | 2 | utc_datetime.day(), utc_datetime.hour(), | 706 | 2 | utc_datetime.minute(), utc_datetime.second()); | 707 | 2 | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | 2 | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | 2 | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | 2 | utc_datetime.microsecond() * 1000); | 713 | | } else { | 714 | | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | | temporal.microsecond() * 1000); | 716 | | } | 717 | 2 | if constexpr (!timestamp_ns_on_left) { | 718 | 2 | comparison = -comparison; | 719 | 2 | } | 720 | 2 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 2 | } | 722 | 2 | block.replace_by_position(result, std::move(result_column)); | 723 | 2 | return Status::OK(); | 724 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE11ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE25ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE12ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 3 | size_t input_rows_count) const { | 682 | 3 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 3 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 3 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 3 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 3 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 3 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 3 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 3 | const auto& timestamps = | 690 | 3 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 3 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 3 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 3 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 3 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 3 | auto& result_data = result_column->get_data(); | 697 | 20 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 17 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 17 | const auto& temporal = | 700 | 17 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 17 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 17 | } else { | 714 | 17 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 17 | temporal.microsecond() * 1000); | 716 | 17 | } | 717 | | if constexpr (!timestamp_ns_on_left) { | 718 | | comparison = -comparison; | 719 | | } | 720 | 17 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 17 | } | 722 | 3 | block.replace_by_position(result, std::move(result_column)); | 723 | 3 | return Status::OK(); | 724 | 3 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE26ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Line | Count | Source | 681 | 1 | size_t input_rows_count) const { | 682 | 1 | static_assert(TemporalPType == TYPE_DATE || TemporalPType == TYPE_DATEV2 || | 683 | 1 | TemporalPType == TYPE_DATETIME || TemporalPType == TYPE_DATETIMEV2 || | 684 | 1 | TemporalPType == TYPE_TIMESTAMPTZ); | 685 | 1 | const auto& timestamp_column = timestamp_ns_on_left ? left_column : right_column; | 686 | 1 | const auto& temporal_column = timestamp_ns_on_left ? right_column : left_column; | 687 | 1 | auto [timestamp_unpacked, timestamp_is_const] = unpack_if_const(timestamp_column); | 688 | 1 | auto [temporal_unpacked, temporal_is_const] = unpack_if_const(temporal_column); | 689 | 1 | const auto& timestamps = | 690 | 1 | assert_cast<const ColumnTimeStampNs&>(*timestamp_unpacked).get_data(); | 691 | 1 | using TemporalColumn = typename PrimitiveTypeTraits<TemporalPType>::ColumnType; | 692 | 1 | using TemporalValue = typename PrimitiveTypeTraits<TemporalPType>::CppType; | 693 | 1 | const auto& temporals = assert_cast<const TemporalColumn&>(*temporal_unpacked).get_data(); | 694 | | | 695 | 1 | auto result_column = ColumnUInt8::create(input_rows_count); | 696 | 1 | auto& result_data = result_column->get_data(); | 697 | 8 | for (size_t row = 0; row < input_rows_count; ++row) { | 698 | 7 | const auto& timestamp = timestamps[timestamp_is_const ? 0 : row]; | 699 | 7 | const auto& temporal = | 700 | 7 | reinterpret_cast<const TemporalValue&>(temporals[temporal_is_const ? 0 : row]); | 701 | 7 | int comparison; | 702 | | if constexpr (TemporalPType == TYPE_TIMESTAMPTZ) { | 703 | | const auto utc_datetime = temporal.utc_dt(); | 704 | | const cctz::civil_second utc_civil(utc_datetime.year(), utc_datetime.month(), | 705 | | utc_datetime.day(), utc_datetime.hour(), | 706 | | utc_datetime.minute(), utc_datetime.second()); | 707 | | const auto utc_time = cctz::convert(utc_civil, cctz::utc_time_zone()); | 708 | | const auto local_civil = cctz::convert(utc_time, context->state()->timezone_obj()); | 709 | | // Keep the signed civil year across date boundaries. NULL payloads are | 710 | | // normalized without validation; the nullable framework masks their results. | 711 | | comparison = compare_timestamp_ns_with_temporal(timestamp, local_civil, | 712 | | utc_datetime.microsecond() * 1000); | 713 | 7 | } else { | 714 | 7 | comparison = compare_timestamp_ns_with_temporal(timestamp, temporal, | 715 | 7 | temporal.microsecond() * 1000); | 716 | 7 | } | 717 | 7 | if constexpr (!timestamp_ns_on_left) { | 718 | 7 | comparison = -comparison; | 719 | 7 | } | 720 | 7 | result_data[row] = Op<TYPE_INT>::apply(comparison, 0); | 721 | 7 | } | 722 | 1 | block.replace_by_position(result, std::move(result_column)); | 723 | 1 | return Status::OK(); | 724 | 1 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb1EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE29execute_timestamp_ns_temporalILNS_13PrimitiveTypeE42ELb0EEENS_6StatusEPNS_15FunctionContextERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISC_EESH_m |
725 | | |
726 | | public: |
727 | 217 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 60 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 79 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 1 | String get_name() const override { return name; } |
|
728 | | |
729 | 301k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 270k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 1.25k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 729 | 6.95k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 8.34k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 729 | 3.99k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 10.1k | size_t get_number_of_arguments() const override { return 2; } |
|
730 | | |
731 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
732 | 3.24k | const VExprSPtrs& arguments) const override { |
733 | 3.24k | auto op = comparison_zonemap_detail::op_from_name(name); |
734 | 3.24k | DORIS_CHECK(op.has_value()); |
735 | 3.24k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
736 | 3.24k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 1.72k | const VExprSPtrs& arguments) const override { | 733 | 1.72k | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 1.72k | DORIS_CHECK(op.has_value()); | 735 | 1.72k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 130 | const VExprSPtrs& arguments) const override { | 733 | 130 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 130 | DORIS_CHECK(op.has_value()); | 735 | 130 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 130 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 279 | const VExprSPtrs& arguments) const override { | 733 | 279 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 279 | DORIS_CHECK(op.has_value()); | 735 | 279 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 279 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 376 | const VExprSPtrs& arguments) const override { | 733 | 376 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 376 | DORIS_CHECK(op.has_value()); | 735 | 376 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 376 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 490 | const VExprSPtrs& arguments) const override { | 733 | 490 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 490 | DORIS_CHECK(op.has_value()); | 735 | 490 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 490 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 241 | const VExprSPtrs& arguments) const override { | 733 | 241 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 241 | DORIS_CHECK(op.has_value()); | 735 | 241 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 241 | } |
|
737 | | |
738 | 31.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
739 | 31.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
740 | 31.9k | comparison_zonemap_detail::can_evaluate(arguments); |
741 | 31.8k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 14.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 14.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 14.9k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 14.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 1.21k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 1.21k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 1.21k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 1.21k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 5.08k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 5.08k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 5.10k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 5.08k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 4.18k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 4.18k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 4.22k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 4.18k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 4.61k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 4.61k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 4.61k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 4.61k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 1.81k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 1.81k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 1.83k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 1.81k | } |
|
742 | | |
743 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
744 | 14 | const VExprSPtrs& arguments) const override { |
745 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
746 | 14 | DORIS_CHECK(op.has_value()); |
747 | 14 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
748 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 744 | 4 | const VExprSPtrs& arguments) const override { | 745 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 746 | 4 | DORIS_CHECK(op.has_value()); | 747 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 748 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 744 | 3 | const VExprSPtrs& arguments) const override { | 745 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 746 | 3 | DORIS_CHECK(op.has_value()); | 747 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 748 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 744 | 7 | const VExprSPtrs& arguments) const override { | 745 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 746 | 7 | DORIS_CHECK(op.has_value()); | 747 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 748 | 7 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
749 | | |
750 | 836 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
751 | 836 | auto op = comparison_zonemap_detail::op_from_name(name); |
752 | 836 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
753 | 836 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 366 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 366 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 366 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 366 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 1 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 1 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 100 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 100 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 100 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 100 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 223 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 223 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 223 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 223 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 137 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 137 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 137 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 9 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 9 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 9 | } |
|
754 | | |
755 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
756 | 19 | const VExprSPtrs& arguments) const override { |
757 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); |
758 | 19 | DORIS_CHECK(op.has_value()); |
759 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
760 | 19 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 756 | 19 | const VExprSPtrs& arguments) const override { | 757 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); | 758 | 19 | DORIS_CHECK(op.has_value()); | 759 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 760 | 19 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
761 | | |
762 | 340 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
763 | 340 | auto op = comparison_zonemap_detail::op_from_name(name); |
764 | 340 | return op == comparison_zonemap_detail::Op::EQ && |
765 | 340 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
766 | 340 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 171 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 171 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 171 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 171 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 171 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 1 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 1 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 1 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 30 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 30 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 30 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 30 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 76 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 76 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 76 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 76 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 58 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 58 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 58 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 58 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 4 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 4 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 4 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 4 | } |
|
767 | | |
768 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
769 | 300k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
770 | 300k | return std::make_shared<DataTypeUInt8>(); |
771 | 300k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 270k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 270k | return std::make_shared<DataTypeUInt8>(); | 771 | 270k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 1.24k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 1.24k | return std::make_shared<DataTypeUInt8>(); | 771 | 1.24k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 6.96k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 6.96k | return std::make_shared<DataTypeUInt8>(); | 771 | 6.96k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 8.35k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 8.35k | return std::make_shared<DataTypeUInt8>(); | 771 | 8.35k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 3.99k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 3.99k | return std::make_shared<DataTypeUInt8>(); | 771 | 3.99k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 10.1k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 10.1k | return std::make_shared<DataTypeUInt8>(); | 771 | 10.1k | } |
|
772 | | |
773 | | Status evaluate_inverted_index( |
774 | | const ColumnsWithTypeAndName& arguments, |
775 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
776 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
777 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
778 | 1.30k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
779 | 1.30k | DCHECK(arguments.size() == 1); |
780 | 1.30k | DCHECK(data_type_with_names.size() == 1); |
781 | 1.30k | DCHECK(iterators.size() == 1); |
782 | 1.30k | auto* iter = iterators[0]; |
783 | 1.30k | auto data_type_with_name = data_type_with_names[0]; |
784 | 1.30k | if (iter == nullptr) { |
785 | 0 | return Status::OK(); |
786 | 0 | } |
787 | 1.30k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
788 | 298 | return Status::OK(); |
789 | 298 | } |
790 | 1.00k | segment_v2::InvertedIndexQueryType query_type; |
791 | 1.00k | std::string_view name_view(name); |
792 | 1.00k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
793 | 691 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
794 | 691 | } else if (name_view == NameLess::name) { |
795 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
796 | 238 | } else if (name_view == NameLessOrEquals::name) { |
797 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
798 | 157 | } else if (name_view == NameGreater::name) { |
799 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
800 | 92 | } else if (name_view == NameGreaterOrEquals::name) { |
801 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
802 | 18.4E | } else { |
803 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
804 | 18.4E | } |
805 | | |
806 | 1.01k | if (segment_v2::is_range_query(query_type) && |
807 | 1.01k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
809 | 133 | return Status::OK(); |
810 | 133 | } |
811 | 880 | Field param_value; |
812 | 880 | arguments[0].column->get(0, param_value); |
813 | 880 | if (param_value.is_null()) { |
814 | 2 | return Status::OK(); |
815 | 2 | } |
816 | 878 | segment_v2::InvertedIndexParam param; |
817 | 878 | param.column_name = data_type_with_name.first; |
818 | 878 | param.column_type = data_type_with_name.second; |
819 | 878 | param.query_value = param_value; |
820 | 878 | param.query_type = query_type; |
821 | 878 | param.num_rows = num_rows; |
822 | 878 | param.roaring = std::make_shared<roaring::Roaring>(); |
823 | 878 | param.analyzer_ctx = analyzer_ctx; |
824 | 878 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
825 | 739 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
826 | 739 | if (iter->has_null()) { |
827 | 734 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
828 | 734 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
829 | 734 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
830 | 734 | } |
831 | 739 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
832 | 739 | bitmap_result = result; |
833 | 739 | bitmap_result.mask_out_null(); |
834 | | |
835 | 739 | if (name_view == NameNotEquals::name) { |
836 | 58 | roaring::Roaring full_result; |
837 | 58 | full_result.addRange(0, num_rows); |
838 | 58 | bitmap_result.op_not(&full_result); |
839 | 58 | } |
840 | | |
841 | 739 | return Status::OK(); |
842 | 739 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 654 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 654 | DCHECK(arguments.size() == 1); | 780 | 654 | DCHECK(data_type_with_names.size() == 1); | 781 | 654 | DCHECK(iterators.size() == 1); | 782 | 654 | auto* iter = iterators[0]; | 783 | 654 | auto data_type_with_name = data_type_with_names[0]; | 784 | 654 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 654 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 30 | return Status::OK(); | 789 | 30 | } | 790 | 624 | segment_v2::InvertedIndexQueryType query_type; | 791 | 624 | std::string_view name_view(name); | 792 | 625 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 625 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 18.4E | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 18.4E | } else if (name_view == NameGreater::name) { | 799 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 18.4E | } else { | 803 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 18.4E | } | 805 | | | 806 | 625 | if (segment_v2::is_range_query(query_type) && | 807 | 625 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 809 | 0 | return Status::OK(); | 810 | 0 | } | 811 | 625 | Field param_value; | 812 | 625 | arguments[0].column->get(0, param_value); | 813 | 625 | if (param_value.is_null()) { | 814 | 2 | return Status::OK(); | 815 | 2 | } | 816 | 623 | segment_v2::InvertedIndexParam param; | 817 | 623 | param.column_name = data_type_with_name.first; | 818 | 623 | param.column_type = data_type_with_name.second; | 819 | 623 | param.query_value = param_value; | 820 | 623 | param.query_type = query_type; | 821 | 623 | param.num_rows = num_rows; | 822 | 623 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 623 | param.analyzer_ctx = analyzer_ctx; | 824 | 623 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 588 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 588 | if (iter->has_null()) { | 827 | 587 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 587 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 587 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 587 | } | 831 | 588 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 588 | bitmap_result = result; | 833 | 588 | bitmap_result.mask_out_null(); | 834 | | | 835 | 588 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 588 | return Status::OK(); | 842 | 588 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 69 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 69 | DCHECK(arguments.size() == 1); | 780 | 69 | DCHECK(data_type_with_names.size() == 1); | 781 | 69 | DCHECK(iterators.size() == 1); | 782 | 69 | auto* iter = iterators[0]; | 783 | 69 | auto data_type_with_name = data_type_with_names[0]; | 784 | 69 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 69 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 6 | return Status::OK(); | 789 | 6 | } | 790 | 63 | segment_v2::InvertedIndexQueryType query_type; | 791 | 63 | std::string_view name_view(name); | 792 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 18.4E | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 18.4E | } else if (name_view == NameGreater::name) { | 799 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 18.4E | } else { | 803 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 18.4E | } | 805 | | | 806 | 66 | if (segment_v2::is_range_query(query_type) && | 807 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 809 | 0 | return Status::OK(); | 810 | 0 | } | 811 | 66 | Field param_value; | 812 | 66 | arguments[0].column->get(0, param_value); | 813 | 66 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 66 | segment_v2::InvertedIndexParam param; | 817 | 66 | param.column_name = data_type_with_name.first; | 818 | 66 | param.column_type = data_type_with_name.second; | 819 | 66 | param.query_value = param_value; | 820 | 66 | param.query_type = query_type; | 821 | 66 | param.num_rows = num_rows; | 822 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 66 | param.analyzer_ctx = analyzer_ctx; | 824 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 60 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 60 | if (iter->has_null()) { | 827 | 57 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 57 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 57 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 57 | } | 831 | 60 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 60 | bitmap_result = result; | 833 | 60 | bitmap_result.mask_out_null(); | 834 | | | 835 | 60 | if (name_view == NameNotEquals::name) { | 836 | 58 | roaring::Roaring full_result; | 837 | 58 | full_result.addRange(0, num_rows); | 838 | 58 | bitmap_result.op_not(&full_result); | 839 | 58 | } | 840 | | | 841 | 60 | return Status::OK(); | 842 | 60 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 111 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 111 | DCHECK(arguments.size() == 1); | 780 | 111 | DCHECK(data_type_with_names.size() == 1); | 781 | 111 | DCHECK(iterators.size() == 1); | 782 | 111 | auto* iter = iterators[0]; | 783 | 111 | auto data_type_with_name = data_type_with_names[0]; | 784 | 111 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 111 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 39 | return Status::OK(); | 789 | 39 | } | 790 | 72 | segment_v2::InvertedIndexQueryType query_type; | 791 | 72 | std::string_view name_view(name); | 792 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 72 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 72 | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 73 | } else if (name_view == NameGreater::name) { | 799 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 18.4E | } else { | 803 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 18.4E | } | 805 | | | 806 | 73 | if (segment_v2::is_range_query(query_type) && | 807 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 809 | 17 | return Status::OK(); | 810 | 17 | } | 811 | 56 | Field param_value; | 812 | 56 | arguments[0].column->get(0, param_value); | 813 | 56 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 56 | segment_v2::InvertedIndexParam param; | 817 | 56 | param.column_name = data_type_with_name.first; | 818 | 56 | param.column_type = data_type_with_name.second; | 819 | 56 | param.query_value = param_value; | 820 | 56 | param.query_type = query_type; | 821 | 56 | param.num_rows = num_rows; | 822 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 56 | param.analyzer_ctx = analyzer_ctx; | 824 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 37 | if (iter->has_null()) { | 827 | 36 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 36 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 36 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 36 | } | 831 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 37 | bitmap_result = result; | 833 | 37 | bitmap_result.mask_out_null(); | 834 | | | 835 | 37 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 37 | return Status::OK(); | 842 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 177 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 177 | DCHECK(arguments.size() == 1); | 780 | 177 | DCHECK(data_type_with_names.size() == 1); | 781 | 177 | DCHECK(iterators.size() == 1); | 782 | 177 | auto* iter = iterators[0]; | 783 | 177 | auto data_type_with_name = data_type_with_names[0]; | 784 | 177 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 177 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 86 | return Status::OK(); | 789 | 86 | } | 790 | 91 | segment_v2::InvertedIndexQueryType query_type; | 791 | 91 | std::string_view name_view(name); | 792 | 92 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 91 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 91 | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 91 | } else if (name_view == NameGreater::name) { | 799 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 92 | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 18.4E | } else { | 803 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 18.4E | } | 805 | | | 806 | 92 | if (segment_v2::is_range_query(query_type) && | 807 | 92 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 809 | 47 | return Status::OK(); | 810 | 47 | } | 811 | 45 | Field param_value; | 812 | 45 | arguments[0].column->get(0, param_value); | 813 | 45 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 45 | segment_v2::InvertedIndexParam param; | 817 | 45 | param.column_name = data_type_with_name.first; | 818 | 45 | param.column_type = data_type_with_name.second; | 819 | 45 | param.query_value = param_value; | 820 | 45 | param.query_type = query_type; | 821 | 45 | param.num_rows = num_rows; | 822 | 45 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 45 | param.analyzer_ctx = analyzer_ctx; | 824 | 45 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 5 | if (iter->has_null()) { | 827 | 4 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 4 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 4 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 4 | } | 831 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 5 | bitmap_result = result; | 833 | 5 | bitmap_result.mask_out_null(); | 834 | | | 835 | 5 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 5 | return Status::OK(); | 842 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 119 | DCHECK(arguments.size() == 1); | 780 | 119 | DCHECK(data_type_with_names.size() == 1); | 781 | 119 | DCHECK(iterators.size() == 1); | 782 | 119 | auto* iter = iterators[0]; | 783 | 119 | auto data_type_with_name = data_type_with_names[0]; | 784 | 119 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 43 | return Status::OK(); | 789 | 43 | } | 790 | 76 | segment_v2::InvertedIndexQueryType query_type; | 791 | 76 | std::string_view name_view(name); | 792 | 78 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 76 | } else if (name_view == NameLess::name) { | 795 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 76 | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 0 | } else if (name_view == NameGreater::name) { | 799 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 0 | } else { | 803 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 0 | } | 805 | | | 806 | 76 | if (segment_v2::is_range_query(query_type) && | 807 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 809 | 18 | return Status::OK(); | 810 | 18 | } | 811 | 58 | Field param_value; | 812 | 58 | arguments[0].column->get(0, param_value); | 813 | 58 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 58 | segment_v2::InvertedIndexParam param; | 817 | 58 | param.column_name = data_type_with_name.first; | 818 | 58 | param.column_type = data_type_with_name.second; | 819 | 58 | param.query_value = param_value; | 820 | 58 | param.query_type = query_type; | 821 | 58 | param.num_rows = num_rows; | 822 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 58 | param.analyzer_ctx = analyzer_ctx; | 824 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 40 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 42 | if (iter->has_null()) { | 827 | 42 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 42 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 42 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 42 | } | 831 | 40 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 40 | bitmap_result = result; | 833 | 40 | bitmap_result.mask_out_null(); | 834 | | | 835 | 40 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 40 | return Status::OK(); | 842 | 40 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 173 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 173 | DCHECK(arguments.size() == 1); | 780 | 173 | DCHECK(data_type_with_names.size() == 1); | 781 | 173 | DCHECK(iterators.size() == 1); | 782 | 173 | auto* iter = iterators[0]; | 783 | 173 | auto data_type_with_name = data_type_with_names[0]; | 784 | 173 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 173 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 94 | return Status::OK(); | 789 | 94 | } | 790 | 79 | segment_v2::InvertedIndexQueryType query_type; | 791 | 79 | std::string_view name_view(name); | 792 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 79 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 81 | } else if (name_view == NameLessOrEquals::name) { | 797 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 18.4E | } else if (name_view == NameGreater::name) { | 799 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 18.4E | } else { | 803 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 18.4E | } | 805 | | | 806 | 81 | if (segment_v2::is_range_query(query_type) && | 807 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 809 | 51 | return Status::OK(); | 810 | 51 | } | 811 | 30 | Field param_value; | 812 | 30 | arguments[0].column->get(0, param_value); | 813 | 30 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 30 | segment_v2::InvertedIndexParam param; | 817 | 30 | param.column_name = data_type_with_name.first; | 818 | 30 | param.column_type = data_type_with_name.second; | 819 | 30 | param.query_value = param_value; | 820 | 30 | param.query_type = query_type; | 821 | 30 | param.num_rows = num_rows; | 822 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 30 | param.analyzer_ctx = analyzer_ctx; | 824 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 9 | if (iter->has_null()) { | 827 | 8 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 8 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 8 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 8 | } | 831 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 9 | bitmap_result = result; | 833 | 9 | bitmap_result.mask_out_null(); | 834 | | | 835 | 9 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 9 | return Status::OK(); | 842 | 9 | } |
|
843 | | |
844 | | // Keep all primitive-type pairs in one dispatch point so every comparison operator shares the |
845 | | // same mixed TIMESTAMP_NS semantics. |
846 | | // NOLINTNEXTLINE(readability-function-size) |
847 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
848 | 151k | uint32_t result, size_t input_rows_count) const override { |
849 | 151k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
850 | 151k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
851 | | |
852 | 151k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
853 | 151k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
854 | 151k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
855 | 151k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
856 | | |
857 | 151k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
858 | 151k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
859 | | |
860 | 151k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ |
861 | 756k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ |
862 | 756k | right_type->get_primitive_type() == TYPE) { \ |
863 | 48 | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ |
864 | 48 | col_right_ptr, input_rows_count); \ |
865 | 48 | } \ |
866 | 756k | if (left_type->get_primitive_type() == TYPE && \ |
867 | 756k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ |
868 | 29 | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ |
869 | 29 | col_right_ptr, input_rows_count); \ |
870 | 29 | } |
871 | | |
872 | 151k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) |
873 | 302k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) |
874 | 302k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) |
875 | 302k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) |
876 | 302k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) |
877 | | |
878 | 151k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON |
879 | | |
880 | | /// The case when arguments are the same (tautological comparison). Return constant. |
881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
883 | 151k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
884 | 151k | col_left_untyped == col_right_untyped) { |
885 | | /// Always true: =, <=, >= |
886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
889 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
890 | 6 | block.get_by_position(result).column = |
891 | 6 | DataTypeUInt8() |
892 | 6 | .create_column_const(input_rows_count, |
893 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) |
894 | 6 | ->convert_to_full_column_if_const(); |
895 | 6 | return Status::OK(); |
896 | 6 | } else { |
897 | 0 | block.get_by_position(result).column = |
898 | 0 | DataTypeUInt8() |
899 | 0 | .create_column_const(input_rows_count, |
900 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
901 | 0 | ->convert_to_full_column_if_const(); |
902 | 0 | return Status::OK(); |
903 | 0 | } |
904 | 6 | } |
905 | | |
906 | 272k | auto can_compare = [](PrimitiveType t) -> bool { |
907 | 272k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
908 | 272k | is_timestamp_ns_type(t); |
909 | 272k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 63.9k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 63.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 63.9k | is_timestamp_ns_type(t); | 909 | 63.9k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 5.11k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 5.11k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 5.11k | is_timestamp_ns_type(t); | 909 | 5.11k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 155k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 155k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 155k | is_timestamp_ns_type(t); | 909 | 155k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 7.71k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 7.71k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 7.71k | is_timestamp_ns_type(t); | 909 | 7.71k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 21.7k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 21.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 21.7k | is_timestamp_ns_type(t); | 909 | 21.7k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 18.4k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 18.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 18.4k | is_timestamp_ns_type(t); | 909 | 18.4k | }; |
|
910 | | |
911 | 151k | if (can_compare(left_type->get_primitive_type()) && |
912 | 151k | can_compare(right_type->get_primitive_type())) { |
913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
914 | 120k | if (!left_type->equals_ignore_precision(*right_type)) { |
915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
916 | 0 | get_name(), left_type->get_name(), |
917 | 0 | right_type->get_name()); |
918 | 0 | } |
919 | 120k | } |
920 | | |
921 | 151k | auto compare_type = left_type->get_primitive_type(); |
922 | 151k | switch (compare_type) { |
923 | 215 | case TYPE_BOOLEAN: |
924 | 215 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
925 | 5.06k | case TYPE_DATEV2: |
926 | 5.06k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
927 | 871 | case TYPE_DATETIMEV2: |
928 | 871 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
929 | 885 | case TYPE_TIMESTAMP_NS: |
930 | 885 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
931 | 18 | case TYPE_TIMESTAMPTZ: |
932 | 18 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
933 | 10.3k | case TYPE_TINYINT: |
934 | 10.3k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
935 | 3.01k | case TYPE_SMALLINT: |
936 | 3.01k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
937 | 82.2k | case TYPE_INT: |
938 | 82.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
939 | 13.6k | case TYPE_BIGINT: |
940 | 13.6k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
941 | 634 | case TYPE_LARGEINT: |
942 | 634 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
943 | 34 | case TYPE_IPV4: |
944 | 34 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
945 | 34 | case TYPE_IPV6: |
946 | 34 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
947 | 4.86k | case TYPE_UUID: |
948 | 4.86k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
949 | 611 | case TYPE_FLOAT: |
950 | 611 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
951 | 2.97k | case TYPE_DOUBLE: |
952 | 2.97k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
953 | 4 | case TYPE_TIMEV2: |
954 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
955 | 0 | case TYPE_DECIMALV2: |
956 | 281 | case TYPE_DECIMAL32: |
957 | 811 | case TYPE_DECIMAL64: |
958 | 3.02k | case TYPE_DECIMAL128I: |
959 | 3.10k | case TYPE_DECIMAL256: |
960 | 3.10k | return execute_decimal(block, result, col_with_type_and_name_left, |
961 | 3.10k | col_with_type_and_name_right); |
962 | 821 | case TYPE_CHAR: |
963 | 7.81k | case TYPE_VARCHAR: |
964 | 22.5k | case TYPE_STRING: |
965 | 22.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
966 | 161 | default: |
967 | 161 | return execute_generic(block, result, col_with_type_and_name_left, |
968 | 161 | col_with_type_and_name_right); |
969 | 151k | } |
970 | 0 | return Status::OK(); |
971 | 151k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 44.4k | uint32_t result, size_t input_rows_count) const override { | 849 | 44.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 44.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 44.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 44.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 44.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 44.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 44.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 44.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 44.4k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 44.4k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 44.4k | right_type->get_primitive_type() == TYPE) { \ | 863 | 44.4k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 44.4k | col_right_ptr, input_rows_count); \ | 865 | 44.4k | } \ | 866 | 44.4k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 44.4k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 44.4k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 44.4k | col_right_ptr, input_rows_count); \ | 870 | 44.4k | } | 871 | | | 872 | 44.4k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 88.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 88.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 88.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 88.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 44.4k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 44.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 44.4k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | 6 | block.get_by_position(result).column = | 891 | 6 | DataTypeUInt8() | 892 | 6 | .create_column_const(input_rows_count, | 893 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | 6 | ->convert_to_full_column_if_const(); | 895 | 6 | return Status::OK(); | 896 | | } else { | 897 | | block.get_by_position(result).column = | 898 | | DataTypeUInt8() | 899 | | .create_column_const(input_rows_count, | 900 | | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | | ->convert_to_full_column_if_const(); | 902 | | return Status::OK(); | 903 | | } | 904 | 6 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 44.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 44.4k | is_timestamp_ns_type(t); | 909 | 44.4k | }; | 910 | | | 911 | 44.4k | if (can_compare(left_type->get_primitive_type()) && | 912 | 44.4k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 19.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 19.5k | } | 920 | | | 921 | 44.4k | auto compare_type = left_type->get_primitive_type(); | 922 | 44.4k | switch (compare_type) { | 923 | 95 | case TYPE_BOOLEAN: | 924 | 95 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 702 | case TYPE_DATEV2: | 926 | 702 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 377 | case TYPE_DATETIMEV2: | 928 | 377 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 200 | case TYPE_TIMESTAMP_NS: | 930 | 200 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 12 | case TYPE_TIMESTAMPTZ: | 932 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 6.14k | case TYPE_TINYINT: | 934 | 6.14k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 392 | case TYPE_SMALLINT: | 936 | 392 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 3.17k | case TYPE_INT: | 938 | 3.17k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 7.59k | case TYPE_BIGINT: | 940 | 7.59k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 91 | case TYPE_LARGEINT: | 942 | 91 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 12 | case TYPE_IPV4: | 944 | 12 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 17 | case TYPE_IPV6: | 946 | 17 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 2.80k | case TYPE_UUID: | 948 | 2.80k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 67 | case TYPE_FLOAT: | 950 | 67 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 682 | case TYPE_DOUBLE: | 952 | 682 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 4 | case TYPE_TIMEV2: | 954 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 97 | case TYPE_DECIMAL32: | 957 | 199 | case TYPE_DECIMAL64: | 958 | 1.09k | case TYPE_DECIMAL128I: | 959 | 1.10k | case TYPE_DECIMAL256: | 960 | 1.10k | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 1.10k | col_with_type_and_name_right); | 962 | 564 | case TYPE_CHAR: | 963 | 6.79k | case TYPE_VARCHAR: | 964 | 20.9k | case TYPE_STRING: | 965 | 20.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 32 | default: | 967 | 32 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 32 | col_with_type_and_name_right); | 969 | 44.4k | } | 970 | 0 | return Status::OK(); | 971 | 44.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 2.68k | uint32_t result, size_t input_rows_count) const override { | 849 | 2.68k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 2.68k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 2.68k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 2.68k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 2.68k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 2.68k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 2.68k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 2.68k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 2.68k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 2.68k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 2.68k | right_type->get_primitive_type() == TYPE) { \ | 863 | 2.68k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 2.68k | col_right_ptr, input_rows_count); \ | 865 | 2.68k | } \ | 866 | 2.68k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 2.68k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 2.68k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 2.68k | col_right_ptr, input_rows_count); \ | 870 | 2.68k | } | 871 | | | 872 | 2.68k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 5.36k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 5.36k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 5.36k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 5.36k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 2.68k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 2.68k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 2.68k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | | block.get_by_position(result).column = | 891 | | DataTypeUInt8() | 892 | | .create_column_const(input_rows_count, | 893 | | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | | ->convert_to_full_column_if_const(); | 895 | | return Status::OK(); | 896 | 0 | } else { | 897 | 0 | block.get_by_position(result).column = | 898 | 0 | DataTypeUInt8() | 899 | 0 | .create_column_const(input_rows_count, | 900 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | 0 | ->convert_to_full_column_if_const(); | 902 | 0 | return Status::OK(); | 903 | 0 | } | 904 | 0 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 2.68k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 2.68k | is_timestamp_ns_type(t); | 909 | 2.68k | }; | 910 | | | 911 | 2.68k | if (can_compare(left_type->get_primitive_type()) && | 912 | 2.68k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 2.43k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 2.43k | } | 920 | | | 921 | 2.68k | auto compare_type = left_type->get_primitive_type(); | 922 | 2.68k | switch (compare_type) { | 923 | 0 | case TYPE_BOOLEAN: | 924 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 70 | case TYPE_DATEV2: | 926 | 70 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 0 | case TYPE_DATETIMEV2: | 928 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 8 | case TYPE_TIMESTAMP_NS: | 930 | 8 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 0 | case TYPE_TIMESTAMPTZ: | 932 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 84 | case TYPE_TINYINT: | 934 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 0 | case TYPE_SMALLINT: | 936 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 1.10k | case TYPE_INT: | 938 | 1.10k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 1.05k | case TYPE_BIGINT: | 940 | 1.05k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 0 | case TYPE_LARGEINT: | 942 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 0 | case TYPE_IPV4: | 944 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 0 | case TYPE_IPV6: | 946 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 0 | case TYPE_UUID: | 948 | 0 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 48 | case TYPE_FLOAT: | 950 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 60 | case TYPE_DOUBLE: | 952 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 0 | case TYPE_DECIMAL32: | 957 | 67 | case TYPE_DECIMAL64: | 958 | 95 | case TYPE_DECIMAL128I: | 959 | 125 | case TYPE_DECIMAL256: | 960 | 125 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 125 | col_with_type_and_name_right); | 962 | 1 | case TYPE_CHAR: | 963 | 58 | case TYPE_VARCHAR: | 964 | 115 | case TYPE_STRING: | 965 | 115 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 9 | default: | 967 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 9 | col_with_type_and_name_right); | 969 | 2.68k | } | 970 | 0 | return Status::OK(); | 971 | 2.68k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 78.2k | uint32_t result, size_t input_rows_count) const override { | 849 | 78.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 78.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 78.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 78.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 78.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 78.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 78.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 78.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 78.2k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 78.2k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 78.2k | right_type->get_primitive_type() == TYPE) { \ | 863 | 78.2k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 78.2k | col_right_ptr, input_rows_count); \ | 865 | 78.2k | } \ | 866 | 78.2k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 78.2k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 78.2k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 78.2k | col_right_ptr, input_rows_count); \ | 870 | 78.2k | } | 871 | | | 872 | 78.2k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 156k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 156k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 156k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 156k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 78.2k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 78.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 78.2k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | | block.get_by_position(result).column = | 891 | | DataTypeUInt8() | 892 | | .create_column_const(input_rows_count, | 893 | | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | | ->convert_to_full_column_if_const(); | 895 | | return Status::OK(); | 896 | 0 | } else { | 897 | 0 | block.get_by_position(result).column = | 898 | 0 | DataTypeUInt8() | 899 | 0 | .create_column_const(input_rows_count, | 900 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | 0 | ->convert_to_full_column_if_const(); | 902 | 0 | return Status::OK(); | 903 | 0 | } | 904 | 0 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 78.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 78.2k | is_timestamp_ns_type(t); | 909 | 78.2k | }; | 910 | | | 911 | 78.2k | if (can_compare(left_type->get_primitive_type()) && | 912 | 78.2k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 76.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 76.7k | } | 920 | | | 921 | 78.2k | auto compare_type = left_type->get_primitive_type(); | 922 | 78.2k | switch (compare_type) { | 923 | 0 | case TYPE_BOOLEAN: | 924 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 1.14k | case TYPE_DATEV2: | 926 | 1.14k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 3 | case TYPE_DATETIMEV2: | 928 | 3 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 67 | case TYPE_TIMESTAMP_NS: | 930 | 67 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 1 | case TYPE_TIMESTAMPTZ: | 932 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 1.59k | case TYPE_TINYINT: | 934 | 1.59k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 2.35k | case TYPE_SMALLINT: | 936 | 2.35k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 67.8k | case TYPE_INT: | 938 | 67.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 2.60k | case TYPE_BIGINT: | 940 | 2.60k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 248 | case TYPE_LARGEINT: | 942 | 248 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 4 | case TYPE_IPV4: | 944 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 1 | case TYPE_IPV6: | 946 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 611 | case TYPE_UUID: | 948 | 611 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 324 | case TYPE_FLOAT: | 950 | 324 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 545 | case TYPE_DOUBLE: | 952 | 545 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 8 | case TYPE_DECIMAL32: | 957 | 72 | case TYPE_DECIMAL64: | 958 | 713 | case TYPE_DECIMAL128I: | 959 | 715 | case TYPE_DECIMAL256: | 960 | 715 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 715 | col_with_type_and_name_right); | 962 | 14 | case TYPE_CHAR: | 963 | 121 | case TYPE_VARCHAR: | 964 | 222 | case TYPE_STRING: | 965 | 222 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 9 | default: | 967 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 9 | col_with_type_and_name_right); | 969 | 78.2k | } | 970 | 0 | return Status::OK(); | 971 | 78.2k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 4.42k | uint32_t result, size_t input_rows_count) const override { | 849 | 4.42k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 4.42k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 4.42k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 4.42k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 4.42k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 4.42k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 4.42k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 4.42k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 4.42k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 4.42k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 4.42k | right_type->get_primitive_type() == TYPE) { \ | 863 | 4.42k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 4.42k | col_right_ptr, input_rows_count); \ | 865 | 4.42k | } \ | 866 | 4.42k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 4.42k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 4.42k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 4.42k | col_right_ptr, input_rows_count); \ | 870 | 4.42k | } | 871 | | | 872 | 4.42k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 8.84k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 8.84k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 8.84k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 8.84k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 4.42k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 4.42k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 4.42k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | 0 | block.get_by_position(result).column = | 891 | 0 | DataTypeUInt8() | 892 | 0 | .create_column_const(input_rows_count, | 893 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | 0 | ->convert_to_full_column_if_const(); | 895 | 0 | return Status::OK(); | 896 | | } else { | 897 | | block.get_by_position(result).column = | 898 | | DataTypeUInt8() | 899 | | .create_column_const(input_rows_count, | 900 | | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | | ->convert_to_full_column_if_const(); | 902 | | return Status::OK(); | 903 | | } | 904 | 0 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 4.42k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 4.42k | is_timestamp_ns_type(t); | 909 | 4.42k | }; | 910 | | | 911 | 4.42k | if (can_compare(left_type->get_primitive_type()) && | 912 | 4.42k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 3.29k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 3.29k | } | 920 | | | 921 | 4.42k | auto compare_type = left_type->get_primitive_type(); | 922 | 4.42k | switch (compare_type) { | 923 | 22 | case TYPE_BOOLEAN: | 924 | 22 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 460 | case TYPE_DATEV2: | 926 | 460 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 126 | case TYPE_DATETIMEV2: | 928 | 126 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 401 | case TYPE_TIMESTAMP_NS: | 930 | 401 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 1 | case TYPE_TIMESTAMPTZ: | 932 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 48 | case TYPE_TINYINT: | 934 | 48 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 54 | case TYPE_SMALLINT: | 936 | 54 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 1.20k | case TYPE_INT: | 938 | 1.20k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 754 | case TYPE_BIGINT: | 940 | 754 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 14 | case TYPE_LARGEINT: | 942 | 14 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 1 | case TYPE_IPV4: | 944 | 1 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 1 | case TYPE_IPV6: | 946 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 575 | case TYPE_UUID: | 948 | 575 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 24 | case TYPE_FLOAT: | 950 | 24 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 145 | case TYPE_DOUBLE: | 952 | 145 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 4 | case TYPE_DECIMAL32: | 957 | 59 | case TYPE_DECIMAL64: | 958 | 131 | case TYPE_DECIMAL128I: | 959 | 148 | case TYPE_DECIMAL256: | 960 | 148 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 148 | col_with_type_and_name_right); | 962 | 33 | case TYPE_CHAR: | 963 | 261 | case TYPE_VARCHAR: | 964 | 397 | case TYPE_STRING: | 965 | 397 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 45 | default: | 967 | 45 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 45 | col_with_type_and_name_right); | 969 | 4.42k | } | 970 | 0 | return Status::OK(); | 971 | 4.42k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 11.8k | uint32_t result, size_t input_rows_count) const override { | 849 | 11.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 11.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 11.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 11.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 11.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 11.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 11.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 11.8k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 11.8k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 11.8k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 11.8k | right_type->get_primitive_type() == TYPE) { \ | 863 | 11.8k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 11.8k | col_right_ptr, input_rows_count); \ | 865 | 11.8k | } \ | 866 | 11.8k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 11.8k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 11.8k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 11.8k | col_right_ptr, input_rows_count); \ | 870 | 11.8k | } | 871 | | | 872 | 11.8k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 23.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 23.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 23.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 23.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 11.7k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 11.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 11.7k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | | block.get_by_position(result).column = | 891 | | DataTypeUInt8() | 892 | | .create_column_const(input_rows_count, | 893 | | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | | ->convert_to_full_column_if_const(); | 895 | | return Status::OK(); | 896 | 0 | } else { | 897 | 0 | block.get_by_position(result).column = | 898 | 0 | DataTypeUInt8() | 899 | 0 | .create_column_const(input_rows_count, | 900 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | 0 | ->convert_to_full_column_if_const(); | 902 | 0 | return Status::OK(); | 903 | 0 | } | 904 | 0 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 11.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 11.7k | is_timestamp_ns_type(t); | 909 | 11.7k | }; | 910 | | | 911 | 11.7k | if (can_compare(left_type->get_primitive_type()) && | 912 | 11.7k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 9.95k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 9.95k | } | 920 | | | 921 | 11.7k | auto compare_type = left_type->get_primitive_type(); | 922 | 11.7k | switch (compare_type) { | 923 | 85 | case TYPE_BOOLEAN: | 924 | 85 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 2.15k | case TYPE_DATEV2: | 926 | 2.15k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 293 | case TYPE_DATETIMEV2: | 928 | 293 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 150 | case TYPE_TIMESTAMP_NS: | 930 | 150 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 2 | case TYPE_TIMESTAMPTZ: | 932 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 2.40k | case TYPE_TINYINT: | 934 | 2.40k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 169 | case TYPE_SMALLINT: | 936 | 169 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 1.97k | case TYPE_INT: | 938 | 1.97k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 911 | case TYPE_BIGINT: | 940 | 911 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 245 | case TYPE_LARGEINT: | 942 | 245 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 17 | case TYPE_IPV4: | 944 | 17 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 15 | case TYPE_IPV6: | 946 | 15 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 457 | case TYPE_UUID: | 948 | 457 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 128 | case TYPE_FLOAT: | 950 | 128 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 1.40k | case TYPE_DOUBLE: | 952 | 1.40k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 165 | case TYPE_DECIMAL32: | 957 | 350 | case TYPE_DECIMAL64: | 958 | 836 | case TYPE_DECIMAL128I: | 959 | 837 | case TYPE_DECIMAL256: | 960 | 837 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 837 | col_with_type_and_name_right); | 962 | 174 | case TYPE_CHAR: | 963 | 382 | case TYPE_VARCHAR: | 964 | 530 | case TYPE_STRING: | 965 | 530 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 12 | default: | 967 | 12 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 12 | col_with_type_and_name_right); | 969 | 11.7k | } | 970 | 0 | return Status::OK(); | 971 | 11.7k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 9.68k | uint32_t result, size_t input_rows_count) const override { | 849 | 9.68k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 9.68k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 9.68k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 9.68k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 9.68k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 9.68k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 9.68k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 9.68k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 9.68k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 9.68k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 9.68k | right_type->get_primitive_type() == TYPE) { \ | 863 | 9.68k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 9.68k | col_right_ptr, input_rows_count); \ | 865 | 9.68k | } \ | 866 | 9.68k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 9.68k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 9.68k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 9.68k | col_right_ptr, input_rows_count); \ | 870 | 9.68k | } | 871 | | | 872 | 9.68k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 19.3k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 19.3k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 19.3k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 19.3k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 9.68k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 9.68k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 9.68k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | 0 | block.get_by_position(result).column = | 891 | 0 | DataTypeUInt8() | 892 | 0 | .create_column_const(input_rows_count, | 893 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | 0 | ->convert_to_full_column_if_const(); | 895 | 0 | return Status::OK(); | 896 | | } else { | 897 | | block.get_by_position(result).column = | 898 | | DataTypeUInt8() | 899 | | .create_column_const(input_rows_count, | 900 | | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | | ->convert_to_full_column_if_const(); | 902 | | return Status::OK(); | 903 | | } | 904 | 0 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 9.68k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 9.68k | is_timestamp_ns_type(t); | 909 | 9.68k | }; | 910 | | | 911 | 9.68k | if (can_compare(left_type->get_primitive_type()) && | 912 | 9.68k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 8.74k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 8.74k | } | 920 | | | 921 | 9.68k | auto compare_type = left_type->get_primitive_type(); | 922 | 9.68k | switch (compare_type) { | 923 | 13 | case TYPE_BOOLEAN: | 924 | 13 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 538 | case TYPE_DATEV2: | 926 | 538 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 72 | case TYPE_DATETIMEV2: | 928 | 72 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 59 | case TYPE_TIMESTAMP_NS: | 930 | 59 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 2 | case TYPE_TIMESTAMPTZ: | 932 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 46 | case TYPE_TINYINT: | 934 | 46 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 50 | case TYPE_SMALLINT: | 936 | 50 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 6.98k | case TYPE_INT: | 938 | 6.98k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 721 | case TYPE_BIGINT: | 940 | 721 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 36 | case TYPE_LARGEINT: | 942 | 36 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 0 | case TYPE_IPV4: | 944 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 0 | case TYPE_IPV6: | 946 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 415 | case TYPE_UUID: | 948 | 415 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 20 | case TYPE_FLOAT: | 950 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 133 | case TYPE_DOUBLE: | 952 | 133 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 7 | case TYPE_DECIMAL32: | 957 | 64 | case TYPE_DECIMAL64: | 958 | 158 | case TYPE_DECIMAL128I: | 959 | 170 | case TYPE_DECIMAL256: | 960 | 170 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 170 | col_with_type_and_name_right); | 962 | 35 | case TYPE_CHAR: | 963 | 199 | case TYPE_VARCHAR: | 964 | 363 | case TYPE_STRING: | 965 | 363 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 54 | default: | 967 | 54 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 54 | col_with_type_and_name_right); | 969 | 9.68k | } | 970 | 0 | return Status::OK(); | 971 | 9.68k | } |
|
972 | | }; |
973 | | |
974 | | } // namespace doris |