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 | 12.4k | PaddedPODArray<UInt8>& c) { |
74 | 12.4k | size_t size = a.size(); |
75 | 12.4k | const A* __restrict a_pos = a.data(); |
76 | 12.4k | const B* __restrict b_pos = b.data(); |
77 | 12.4k | UInt8* __restrict c_pos = c.data(); |
78 | 12.4k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 7.74M | while (a_pos < a_end) { |
81 | 7.73M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 7.73M | ++a_pos; |
83 | 7.73M | ++b_pos; |
84 | 7.73M | ++c_pos; |
85 | 7.73M | } |
86 | 12.4k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ 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 | 132 | while (a_pos < a_end) { | 81 | 68 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 68 | ++a_pos; | 83 | 68 | ++b_pos; | 84 | 68 | ++c_pos; | 85 | 68 | } | 86 | 64 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 161 | PaddedPODArray<UInt8>& c) { | 74 | 161 | size_t size = a.size(); | 75 | 161 | const A* __restrict a_pos = a.data(); | 76 | 161 | const B* __restrict b_pos = b.data(); | 77 | 161 | UInt8* __restrict c_pos = c.data(); | 78 | 161 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 328 | while (a_pos < a_end) { | 81 | 167 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 167 | ++a_pos; | 83 | 167 | ++b_pos; | 84 | 167 | ++c_pos; | 85 | 167 | } | 86 | 161 | } |
_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 | 432 | while (a_pos < a_end) { | 81 | 229 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 229 | ++a_pos; | 83 | 229 | ++b_pos; | 84 | 229 | ++c_pos; | 85 | 229 | } | 86 | 203 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 117 | PaddedPODArray<UInt8>& c) { | 74 | 117 | size_t size = a.size(); | 75 | 117 | const A* __restrict a_pos = a.data(); | 76 | 117 | const B* __restrict b_pos = b.data(); | 77 | 117 | UInt8* __restrict c_pos = c.data(); | 78 | 117 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 293 | while (a_pos < a_end) { | 81 | 176 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 176 | ++a_pos; | 83 | 176 | ++b_pos; | 84 | 176 | ++c_pos; | 85 | 176 | } | 86 | 117 | } |
_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 | 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 | 399 | while (a_pos < a_end) { | 81 | 270 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 270 | ++a_pos; | 83 | 270 | ++b_pos; | 84 | 270 | ++c_pos; | 85 | 270 | } | 86 | 129 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 89 | PaddedPODArray<UInt8>& c) { | 74 | 89 | size_t size = a.size(); | 75 | 89 | const A* __restrict a_pos = a.data(); | 76 | 89 | const B* __restrict b_pos = b.data(); | 77 | 89 | UInt8* __restrict c_pos = c.data(); | 78 | 89 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 178 | while (a_pos < a_end) { | 81 | 89 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 89 | ++a_pos; | 83 | 89 | ++b_pos; | 84 | 89 | ++c_pos; | 85 | 89 | } | 86 | 89 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.02k | PaddedPODArray<UInt8>& c) { | 74 | 1.02k | size_t size = a.size(); | 75 | 1.02k | const A* __restrict a_pos = a.data(); | 76 | 1.02k | const B* __restrict b_pos = b.data(); | 77 | 1.02k | UInt8* __restrict c_pos = c.data(); | 78 | 1.02k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 3.52k | while (a_pos < a_end) { | 81 | 2.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.50k | ++a_pos; | 83 | 2.50k | ++b_pos; | 84 | 2.50k | ++c_pos; | 85 | 2.50k | } | 86 | 1.02k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 163 | PaddedPODArray<UInt8>& c) { | 74 | 163 | size_t size = a.size(); | 75 | 163 | const A* __restrict a_pos = a.data(); | 76 | 163 | const B* __restrict b_pos = b.data(); | 77 | 163 | UInt8* __restrict c_pos = c.data(); | 78 | 163 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.44k | while (a_pos < a_end) { | 81 | 1.27k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.27k | ++a_pos; | 83 | 1.27k | ++b_pos; | 84 | 1.27k | ++c_pos; | 85 | 1.27k | } | 86 | 163 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 51 | PaddedPODArray<UInt8>& c) { | 74 | 51 | size_t size = a.size(); | 75 | 51 | const A* __restrict a_pos = a.data(); | 76 | 51 | const B* __restrict b_pos = b.data(); | 77 | 51 | UInt8* __restrict c_pos = c.data(); | 78 | 51 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 102 | while (a_pos < a_end) { | 81 | 51 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 51 | ++a_pos; | 83 | 51 | ++b_pos; | 84 | 51 | ++c_pos; | 85 | 51 | } | 86 | 51 | } |
_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 | 794 | PaddedPODArray<UInt8>& c) { | 74 | 794 | size_t size = a.size(); | 75 | 794 | const A* __restrict a_pos = a.data(); | 76 | 794 | const B* __restrict b_pos = b.data(); | 77 | 794 | UInt8* __restrict c_pos = c.data(); | 78 | 794 | 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 | 794 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 71 | PaddedPODArray<UInt8>& c) { | 74 | 71 | size_t size = a.size(); | 75 | 71 | const A* __restrict a_pos = a.data(); | 76 | 71 | const B* __restrict b_pos = b.data(); | 77 | 71 | UInt8* __restrict c_pos = c.data(); | 78 | 71 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 161 | while (a_pos < a_end) { | 81 | 90 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 90 | ++a_pos; | 83 | 90 | ++b_pos; | 84 | 90 | ++c_pos; | 85 | 90 | } | 86 | 71 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 84 | PaddedPODArray<UInt8>& c) { | 74 | 84 | size_t size = a.size(); | 75 | 84 | const A* __restrict a_pos = a.data(); | 76 | 84 | const B* __restrict b_pos = b.data(); | 77 | 84 | UInt8* __restrict c_pos = c.data(); | 78 | 84 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 234 | while (a_pos < a_end) { | 81 | 150 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 150 | ++a_pos; | 83 | 150 | ++b_pos; | 84 | 150 | ++c_pos; | 85 | 150 | } | 86 | 84 | } |
_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 | 1.40k | PaddedPODArray<UInt8>& c) { | 74 | 1.40k | size_t size = a.size(); | 75 | 1.40k | const A* __restrict a_pos = a.data(); | 76 | 1.40k | const B* __restrict b_pos = b.data(); | 77 | 1.40k | UInt8* __restrict c_pos = c.data(); | 78 | 1.40k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 365k | 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 | 1.40k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 381 | PaddedPODArray<UInt8>& c) { | 74 | 381 | size_t size = a.size(); | 75 | 381 | const A* __restrict a_pos = a.data(); | 76 | 381 | const B* __restrict b_pos = b.data(); | 77 | 381 | UInt8* __restrict c_pos = c.data(); | 78 | 381 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 7.57k | while (a_pos < a_end) { | 81 | 7.19k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 7.19k | ++a_pos; | 83 | 7.19k | ++b_pos; | 84 | 7.19k | ++c_pos; | 85 | 7.19k | } | 86 | 381 | } |
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.22k | PaddedPODArray<UInt8>& c) { | 74 | 1.22k | size_t size = a.size(); | 75 | 1.22k | const A* __restrict a_pos = a.data(); | 76 | 1.22k | const B* __restrict b_pos = b.data(); | 77 | 1.22k | UInt8* __restrict c_pos = c.data(); | 78 | 1.22k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 3.81M | while (a_pos < a_end) { | 81 | 3.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 3.80M | ++a_pos; | 83 | 3.80M | ++b_pos; | 84 | 3.80M | ++c_pos; | 85 | 3.80M | } | 86 | 1.22k | } |
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 | 71 | PaddedPODArray<UInt8>& c) { | 74 | 71 | size_t size = a.size(); | 75 | 71 | const A* __restrict a_pos = a.data(); | 76 | 71 | const B* __restrict b_pos = b.data(); | 77 | 71 | UInt8* __restrict c_pos = c.data(); | 78 | 71 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 384 | while (a_pos < a_end) { | 81 | 313 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 313 | ++a_pos; | 83 | 313 | ++b_pos; | 84 | 313 | ++c_pos; | 85 | 313 | } | 86 | 71 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_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 | 385 | while (a_pos < a_end) { | 81 | 256 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 256 | ++a_pos; | 83 | 256 | ++b_pos; | 84 | 256 | ++c_pos; | 85 | 256 | } | 86 | 129 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 58 | PaddedPODArray<UInt8>& c) { | 74 | 58 | size_t size = a.size(); | 75 | 58 | const A* __restrict a_pos = a.data(); | 76 | 58 | const B* __restrict b_pos = b.data(); | 77 | 58 | UInt8* __restrict c_pos = c.data(); | 78 | 58 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 358 | 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 | 58 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 266 | PaddedPODArray<UInt8>& c) { | 74 | 266 | size_t size = a.size(); | 75 | 266 | const A* __restrict a_pos = a.data(); | 76 | 266 | const B* __restrict b_pos = b.data(); | 77 | 266 | UInt8* __restrict c_pos = c.data(); | 78 | 266 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 800k | while (a_pos < a_end) { | 81 | 799k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 799k | ++a_pos; | 83 | 799k | ++b_pos; | 84 | 799k | ++c_pos; | 85 | 799k | } | 86 | 266 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 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 | 32 | PaddedPODArray<UInt8>& c) { | 74 | 32 | size_t size = a.size(); | 75 | 32 | const A* __restrict a_pos = a.data(); | 76 | 32 | const B* __restrict b_pos = b.data(); | 77 | 32 | UInt8* __restrict c_pos = c.data(); | 78 | 32 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 103 | 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 | 32 | } |
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 | 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 | 67 | while (a_pos < a_end) { | 81 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 59 | ++a_pos; | 83 | 59 | ++b_pos; | 84 | 59 | ++c_pos; | 85 | 59 | } | 86 | 8 | } |
_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 | 19 | PaddedPODArray<UInt8>& c) { | 74 | 19 | size_t size = a.size(); | 75 | 19 | const A* __restrict a_pos = a.data(); | 76 | 19 | const B* __restrict b_pos = b.data(); | 77 | 19 | UInt8* __restrict c_pos = c.data(); | 78 | 19 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 62 | while (a_pos < a_end) { | 81 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 43 | ++a_pos; | 83 | 43 | ++b_pos; | 84 | 43 | ++c_pos; | 85 | 43 | } | 86 | 19 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 16 | PaddedPODArray<UInt8>& c) { | 74 | 16 | size_t size = a.size(); | 75 | 16 | const A* __restrict a_pos = a.data(); | 76 | 16 | const B* __restrict b_pos = b.data(); | 77 | 16 | UInt8* __restrict c_pos = c.data(); | 78 | 16 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 84 | while (a_pos < a_end) { | 81 | 68 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 68 | ++a_pos; | 83 | 68 | ++b_pos; | 84 | 68 | ++c_pos; | 85 | 68 | } | 86 | 16 | } |
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 | 25 | PaddedPODArray<UInt8>& c) { | 74 | 25 | size_t size = a.size(); | 75 | 25 | const A* __restrict a_pos = a.data(); | 76 | 25 | const B* __restrict b_pos = b.data(); | 77 | 25 | UInt8* __restrict c_pos = c.data(); | 78 | 25 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 69 | 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 | 25 | } |
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.85k | PaddedPODArray<UInt8>& c) { | 74 | 1.85k | size_t size = a.size(); | 75 | 1.85k | const A* __restrict a_pos = a.data(); | 76 | 1.85k | const B* __restrict b_pos = b.data(); | 77 | 1.85k | UInt8* __restrict c_pos = c.data(); | 78 | 1.85k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.35M | while (a_pos < a_end) { | 81 | 2.35M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.35M | ++a_pos; | 83 | 2.35M | ++b_pos; | 84 | 2.35M | ++c_pos; | 85 | 2.35M | } | 86 | 1.85k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 240 | PaddedPODArray<UInt8>& c) { | 74 | 240 | size_t size = a.size(); | 75 | 240 | const A* __restrict a_pos = a.data(); | 76 | 240 | const B* __restrict b_pos = b.data(); | 77 | 240 | UInt8* __restrict c_pos = c.data(); | 78 | 240 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 828 | while (a_pos < a_end) { | 81 | 588 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 588 | ++a_pos; | 83 | 588 | ++b_pos; | 84 | 588 | ++c_pos; | 85 | 588 | } | 86 | 240 | } |
_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 | 220 | PaddedPODArray<UInt8>& c) { | 74 | 220 | size_t size = a.size(); | 75 | 220 | const A* __restrict a_pos = a.data(); | 76 | 220 | const B* __restrict b_pos = b.data(); | 77 | 220 | UInt8* __restrict c_pos = c.data(); | 78 | 220 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 614 | while (a_pos < a_end) { | 81 | 394 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 394 | ++a_pos; | 83 | 394 | ++b_pos; | 84 | 394 | ++c_pos; | 85 | 394 | } | 86 | 220 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 156 | PaddedPODArray<UInt8>& c) { | 74 | 156 | size_t size = a.size(); | 75 | 156 | const A* __restrict a_pos = a.data(); | 76 | 156 | const B* __restrict b_pos = b.data(); | 77 | 156 | UInt8* __restrict c_pos = c.data(); | 78 | 156 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 487 | 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 | 156 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 878 | PaddedPODArray<UInt8>& c) { | 74 | 878 | size_t size = a.size(); | 75 | 878 | const A* __restrict a_pos = a.data(); | 76 | 878 | const B* __restrict b_pos = b.data(); | 77 | 878 | UInt8* __restrict c_pos = c.data(); | 78 | 878 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.47k | while (a_pos < a_end) { | 81 | 1.59k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.59k | ++a_pos; | 83 | 1.59k | ++b_pos; | 84 | 1.59k | ++c_pos; | 85 | 1.59k | } | 86 | 878 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 301 | PaddedPODArray<UInt8>& c) { | 74 | 301 | size_t size = a.size(); | 75 | 301 | const A* __restrict a_pos = a.data(); | 76 | 301 | const B* __restrict b_pos = b.data(); | 77 | 301 | UInt8* __restrict c_pos = c.data(); | 78 | 301 | 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 | 301 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 134 | PaddedPODArray<UInt8>& c) { | 74 | 134 | size_t size = a.size(); | 75 | 134 | const A* __restrict a_pos = a.data(); | 76 | 134 | const B* __restrict b_pos = b.data(); | 77 | 134 | UInt8* __restrict c_pos = c.data(); | 78 | 134 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 442 | while (a_pos < a_end) { | 81 | 308 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 308 | ++a_pos; | 83 | 308 | ++b_pos; | 84 | 308 | ++c_pos; | 85 | 308 | } | 86 | 134 | } |
_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 | 130 | PaddedPODArray<UInt8>& c) { | 74 | 130 | size_t size = a.size(); | 75 | 130 | const A* __restrict a_pos = a.data(); | 76 | 130 | const B* __restrict b_pos = b.data(); | 77 | 130 | UInt8* __restrict c_pos = c.data(); | 78 | 130 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 453 | while (a_pos < a_end) { | 81 | 323 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 323 | ++a_pos; | 83 | 323 | ++b_pos; | 84 | 323 | ++c_pos; | 85 | 323 | } | 86 | 130 | } |
_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 | 469 | while (a_pos < a_end) { | 81 | 337 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 337 | ++a_pos; | 83 | 337 | ++b_pos; | 84 | 337 | ++c_pos; | 85 | 337 | } | 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 | 398 | PaddedPODArray<UInt8>& c) { | 74 | 398 | size_t size = a.size(); | 75 | 398 | const A* __restrict a_pos = a.data(); | 76 | 398 | const B* __restrict b_pos = b.data(); | 77 | 398 | UInt8* __restrict c_pos = c.data(); | 78 | 398 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.02k | while (a_pos < a_end) { | 81 | 5.63k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.63k | ++a_pos; | 83 | 5.63k | ++b_pos; | 84 | 5.63k | ++c_pos; | 85 | 5.63k | } | 86 | 398 | } |
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 | 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 | 72 | while (a_pos < a_end) { | 81 | 48 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 48 | ++a_pos; | 83 | 48 | ++b_pos; | 84 | 48 | ++c_pos; | 85 | 48 | } | 86 | 24 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 71 | PaddedPODArray<UInt8>& c) { | 74 | 71 | size_t size = a.size(); | 75 | 71 | const A* __restrict a_pos = a.data(); | 76 | 71 | const B* __restrict b_pos = b.data(); | 77 | 71 | UInt8* __restrict c_pos = c.data(); | 78 | 71 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 194 | while (a_pos < a_end) { | 81 | 123 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 123 | ++a_pos; | 83 | 123 | ++b_pos; | 84 | 123 | ++c_pos; | 85 | 123 | } | 86 | 71 | } |
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 | 109k | PaddedPODArray<UInt8>& c) { |
90 | 109k | size_t size = a.size(); |
91 | 109k | const A* __restrict a_pos = a.data(); |
92 | 109k | UInt8* __restrict c_pos = c.data(); |
93 | 109k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 37.2M | while (a_pos < a_end) { |
96 | 37.1M | *c_pos = Op::apply(*a_pos, b); |
97 | 37.1M | ++a_pos; |
98 | 37.1M | ++c_pos; |
99 | 37.1M | } |
100 | 109k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 30 | PaddedPODArray<UInt8>& c) { | 90 | 30 | size_t size = a.size(); | 91 | 30 | const A* __restrict a_pos = a.data(); | 92 | 30 | UInt8* __restrict c_pos = c.data(); | 93 | 30 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 187 | while (a_pos < a_end) { | 96 | 157 | *c_pos = Op::apply(*a_pos, b); | 97 | 157 | ++a_pos; | 98 | 157 | ++c_pos; | 99 | 157 | } | 100 | 30 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 383 | PaddedPODArray<UInt8>& c) { | 90 | 383 | size_t size = a.size(); | 91 | 383 | const A* __restrict a_pos = a.data(); | 92 | 383 | UInt8* __restrict c_pos = c.data(); | 93 | 383 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 202k | while (a_pos < a_end) { | 96 | 202k | *c_pos = Op::apply(*a_pos, b); | 97 | 202k | ++a_pos; | 98 | 202k | ++c_pos; | 99 | 202k | } | 100 | 383 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 176 | PaddedPODArray<UInt8>& c) { | 90 | 176 | size_t size = a.size(); | 91 | 176 | const A* __restrict a_pos = a.data(); | 92 | 176 | UInt8* __restrict c_pos = c.data(); | 93 | 176 | 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 | 176 | } |
_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 | 5.95k | PaddedPODArray<UInt8>& c) { | 90 | 5.95k | size_t size = a.size(); | 91 | 5.95k | const A* __restrict a_pos = a.data(); | 92 | 5.95k | UInt8* __restrict c_pos = c.data(); | 93 | 5.95k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.04M | while (a_pos < a_end) { | 96 | 9.04M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.04M | ++a_pos; | 98 | 9.04M | ++c_pos; | 99 | 9.04M | } | 100 | 5.95k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 317 | PaddedPODArray<UInt8>& c) { | 90 | 317 | size_t size = a.size(); | 91 | 317 | const A* __restrict a_pos = a.data(); | 92 | 317 | UInt8* __restrict c_pos = c.data(); | 93 | 317 | 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 | 317 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.10k | PaddedPODArray<UInt8>& c) { | 90 | 2.10k | size_t size = a.size(); | 91 | 2.10k | const A* __restrict a_pos = a.data(); | 92 | 2.10k | UInt8* __restrict c_pos = c.data(); | 93 | 2.10k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 186k | while (a_pos < a_end) { | 96 | 184k | *c_pos = Op::apply(*a_pos, b); | 97 | 184k | ++a_pos; | 98 | 184k | ++c_pos; | 99 | 184k | } | 100 | 2.10k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.79k | PaddedPODArray<UInt8>& c) { | 90 | 2.79k | size_t size = a.size(); | 91 | 2.79k | const A* __restrict a_pos = a.data(); | 92 | 2.79k | UInt8* __restrict c_pos = c.data(); | 93 | 2.79k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.84M | while (a_pos < a_end) { | 96 | 1.84M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.84M | ++a_pos; | 98 | 1.84M | ++c_pos; | 99 | 1.84M | } | 100 | 2.79k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 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 | 41 | } |
_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 | 791 | PaddedPODArray<UInt8>& c) { | 90 | 791 | size_t size = a.size(); | 91 | 791 | const A* __restrict a_pos = a.data(); | 92 | 791 | UInt8* __restrict c_pos = c.data(); | 93 | 791 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 719k | while (a_pos < a_end) { | 96 | 718k | *c_pos = Op::apply(*a_pos, b); | 97 | 718k | ++a_pos; | 98 | 718k | ++c_pos; | 99 | 718k | } | 100 | 791 | } |
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 | 274 | PaddedPODArray<UInt8>& c) { | 90 | 274 | size_t size = a.size(); | 91 | 274 | const A* __restrict a_pos = a.data(); | 92 | 274 | UInt8* __restrict c_pos = c.data(); | 93 | 274 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.98k | while (a_pos < a_end) { | 96 | 1.71k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.71k | ++a_pos; | 98 | 1.71k | ++c_pos; | 99 | 1.71k | } | 100 | 274 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 782 | PaddedPODArray<UInt8>& c) { | 90 | 782 | size_t size = a.size(); | 91 | 782 | const A* __restrict a_pos = a.data(); | 92 | 782 | UInt8* __restrict c_pos = c.data(); | 93 | 782 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.96k | while (a_pos < a_end) { | 96 | 5.18k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.18k | ++a_pos; | 98 | 5.18k | ++c_pos; | 99 | 5.18k | } | 100 | 782 | } |
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 | 385 | PaddedPODArray<UInt8>& c) { | 90 | 385 | size_t size = a.size(); | 91 | 385 | const A* __restrict a_pos = a.data(); | 92 | 385 | UInt8* __restrict c_pos = c.data(); | 93 | 385 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.67M | while (a_pos < a_end) { | 96 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.67M | ++a_pos; | 98 | 1.67M | ++c_pos; | 99 | 1.67M | } | 100 | 385 | } |
_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.57k | PaddedPODArray<UInt8>& c) { | 90 | 1.57k | size_t size = a.size(); | 91 | 1.57k | const A* __restrict a_pos = a.data(); | 92 | 1.57k | UInt8* __restrict c_pos = c.data(); | 93 | 1.57k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 13.9k | while (a_pos < a_end) { | 96 | 12.3k | *c_pos = Op::apply(*a_pos, b); | 97 | 12.3k | ++a_pos; | 98 | 12.3k | ++c_pos; | 99 | 12.3k | } | 100 | 1.57k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.10k | PaddedPODArray<UInt8>& c) { | 90 | 2.10k | size_t size = a.size(); | 91 | 2.10k | const A* __restrict a_pos = a.data(); | 92 | 2.10k | UInt8* __restrict c_pos = c.data(); | 93 | 2.10k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.82k | while (a_pos < a_end) { | 96 | 3.71k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.71k | ++a_pos; | 98 | 3.71k | ++c_pos; | 99 | 3.71k | } | 100 | 2.10k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.01k | PaddedPODArray<UInt8>& c) { | 90 | 2.01k | size_t size = a.size(); | 91 | 2.01k | const A* __restrict a_pos = a.data(); | 92 | 2.01k | UInt8* __restrict c_pos = c.data(); | 93 | 2.01k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.37k | while (a_pos < a_end) { | 96 | 5.35k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.35k | ++a_pos; | 98 | 5.35k | ++c_pos; | 99 | 5.35k | } | 100 | 2.01k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 242 | PaddedPODArray<UInt8>& c) { | 90 | 242 | size_t size = a.size(); | 91 | 242 | const A* __restrict a_pos = a.data(); | 92 | 242 | UInt8* __restrict c_pos = c.data(); | 93 | 242 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.20k | while (a_pos < a_end) { | 96 | 958 | *c_pos = Op::apply(*a_pos, b); | 97 | 958 | ++a_pos; | 98 | 958 | ++c_pos; | 99 | 958 | } | 100 | 242 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.52k | PaddedPODArray<UInt8>& c) { | 90 | 5.52k | size_t size = a.size(); | 91 | 5.52k | const A* __restrict a_pos = a.data(); | 92 | 5.52k | UInt8* __restrict c_pos = c.data(); | 93 | 5.52k | 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.52k | } |
_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.75k | PaddedPODArray<UInt8>& c) { | 90 | 1.75k | size_t size = a.size(); | 91 | 1.75k | const A* __restrict a_pos = a.data(); | 92 | 1.75k | UInt8* __restrict c_pos = c.data(); | 93 | 1.75k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 98.8k | while (a_pos < a_end) { | 96 | 97.0k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.0k | ++a_pos; | 98 | 97.0k | ++c_pos; | 99 | 97.0k | } | 100 | 1.75k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.08k | PaddedPODArray<UInt8>& c) { | 90 | 1.08k | size_t size = a.size(); | 91 | 1.08k | const A* __restrict a_pos = a.data(); | 92 | 1.08k | UInt8* __restrict c_pos = c.data(); | 93 | 1.08k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 32.9k | while (a_pos < a_end) { | 96 | 31.8k | *c_pos = Op::apply(*a_pos, b); | 97 | 31.8k | ++a_pos; | 98 | 31.8k | ++c_pos; | 99 | 31.8k | } | 100 | 1.08k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 282 | PaddedPODArray<UInt8>& c) { | 90 | 282 | size_t size = a.size(); | 91 | 282 | const A* __restrict a_pos = a.data(); | 92 | 282 | UInt8* __restrict c_pos = c.data(); | 93 | 282 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.91k | while (a_pos < a_end) { | 96 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.63k | ++a_pos; | 98 | 1.63k | ++c_pos; | 99 | 1.63k | } | 100 | 282 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 133 | PaddedPODArray<UInt8>& c) { | 90 | 133 | size_t size = a.size(); | 91 | 133 | const A* __restrict a_pos = a.data(); | 92 | 133 | UInt8* __restrict c_pos = c.data(); | 93 | 133 | 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 | 133 | } |
_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 | 200 | PaddedPODArray<UInt8>& c) { | 90 | 200 | size_t size = a.size(); | 91 | 200 | const A* __restrict a_pos = a.data(); | 92 | 200 | UInt8* __restrict c_pos = c.data(); | 93 | 200 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.61k | while (a_pos < a_end) { | 96 | 2.41k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.41k | ++a_pos; | 98 | 2.41k | ++c_pos; | 99 | 2.41k | } | 100 | 200 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 512 | PaddedPODArray<UInt8>& c) { | 90 | 512 | size_t size = a.size(); | 91 | 512 | const A* __restrict a_pos = a.data(); | 92 | 512 | UInt8* __restrict c_pos = c.data(); | 93 | 512 | 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 | 512 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 808 | PaddedPODArray<UInt8>& c) { | 90 | 808 | size_t size = a.size(); | 91 | 808 | const A* __restrict a_pos = a.data(); | 92 | 808 | UInt8* __restrict c_pos = c.data(); | 93 | 808 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 608k | while (a_pos < a_end) { | 96 | 608k | *c_pos = Op::apply(*a_pos, b); | 97 | 608k | ++a_pos; | 98 | 608k | ++c_pos; | 99 | 608k | } | 100 | 808 | } |
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 | 33 | PaddedPODArray<UInt8>& c) { | 90 | 33 | size_t size = a.size(); | 91 | 33 | const A* __restrict a_pos = a.data(); | 92 | 33 | UInt8* __restrict c_pos = c.data(); | 93 | 33 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 155k | while (a_pos < a_end) { | 96 | 155k | *c_pos = Op::apply(*a_pos, b); | 97 | 155k | ++a_pos; | 98 | 155k | ++c_pos; | 99 | 155k | } | 100 | 33 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ 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 | 99.2k | while (a_pos < a_end) { | 96 | 99.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 99.1k | ++a_pos; | 98 | 99.1k | ++c_pos; | 99 | 99.1k | } | 100 | 31 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 487 | PaddedPODArray<UInt8>& c) { | 90 | 487 | size_t size = a.size(); | 91 | 487 | const A* __restrict a_pos = a.data(); | 92 | 487 | UInt8* __restrict c_pos = c.data(); | 93 | 487 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.75M | while (a_pos < a_end) { | 96 | 1.75M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.75M | ++a_pos; | 98 | 1.75M | ++c_pos; | 99 | 1.75M | } | 100 | 487 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 164 | PaddedPODArray<UInt8>& c) { | 90 | 164 | size_t size = a.size(); | 91 | 164 | const A* __restrict a_pos = a.data(); | 92 | 164 | UInt8* __restrict c_pos = c.data(); | 93 | 164 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 689k | while (a_pos < a_end) { | 96 | 689k | *c_pos = Op::apply(*a_pos, b); | 97 | 689k | ++a_pos; | 98 | 689k | ++c_pos; | 99 | 689k | } | 100 | 164 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 421 | while (a_pos < a_end) { | 96 | 308 | *c_pos = Op::apply(*a_pos, b); | 97 | 308 | ++a_pos; | 98 | 308 | ++c_pos; | 99 | 308 | } | 100 | 113 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 61 | PaddedPODArray<UInt8>& c) { | 90 | 61 | size_t size = a.size(); | 91 | 61 | const A* __restrict a_pos = a.data(); | 92 | 61 | UInt8* __restrict c_pos = c.data(); | 93 | 61 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 256 | while (a_pos < a_end) { | 96 | 195 | *c_pos = Op::apply(*a_pos, b); | 97 | 195 | ++a_pos; | 98 | 195 | ++c_pos; | 99 | 195 | } | 100 | 61 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 47 | PaddedPODArray<UInt8>& c) { | 90 | 47 | size_t size = a.size(); | 91 | 47 | const A* __restrict a_pos = a.data(); | 92 | 47 | UInt8* __restrict c_pos = c.data(); | 93 | 47 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 114 | while (a_pos < a_end) { | 96 | 67 | *c_pos = Op::apply(*a_pos, b); | 97 | 67 | ++a_pos; | 98 | 67 | ++c_pos; | 99 | 67 | } | 100 | 47 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_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 | 92 | while (a_pos < a_end) { | 96 | 53 | *c_pos = Op::apply(*a_pos, b); | 97 | 53 | ++a_pos; | 98 | 53 | ++c_pos; | 99 | 53 | } | 100 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 55 | PaddedPODArray<UInt8>& c) { | 90 | 55 | size_t size = a.size(); | 91 | 55 | const A* __restrict a_pos = a.data(); | 92 | 55 | UInt8* __restrict c_pos = c.data(); | 93 | 55 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 155k | while (a_pos < a_end) { | 96 | 155k | *c_pos = Op::apply(*a_pos, b); | 97 | 155k | ++a_pos; | 98 | 155k | ++c_pos; | 99 | 155k | } | 100 | 55 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 60 | PaddedPODArray<UInt8>& c) { | 90 | 60 | size_t size = a.size(); | 91 | 60 | const A* __restrict a_pos = a.data(); | 92 | 60 | UInt8* __restrict c_pos = c.data(); | 93 | 60 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 111k | while (a_pos < a_end) { | 96 | 111k | *c_pos = Op::apply(*a_pos, b); | 97 | 111k | ++a_pos; | 98 | 111k | ++c_pos; | 99 | 111k | } | 100 | 60 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 65 | PaddedPODArray<UInt8>& c) { | 90 | 65 | size_t size = a.size(); | 91 | 65 | const A* __restrict a_pos = a.data(); | 92 | 65 | UInt8* __restrict c_pos = c.data(); | 93 | 65 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 119k | while (a_pos < a_end) { | 96 | 119k | *c_pos = Op::apply(*a_pos, b); | 97 | 119k | ++a_pos; | 98 | 119k | ++c_pos; | 99 | 119k | } | 100 | 65 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 81 | PaddedPODArray<UInt8>& c) { | 90 | 81 | size_t size = a.size(); | 91 | 81 | const A* __restrict a_pos = a.data(); | 92 | 81 | UInt8* __restrict c_pos = c.data(); | 93 | 81 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 104k | while (a_pos < a_end) { | 96 | 104k | *c_pos = Op::apply(*a_pos, b); | 97 | 104k | ++a_pos; | 98 | 104k | ++c_pos; | 99 | 104k | } | 100 | 81 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.51k | PaddedPODArray<UInt8>& c) { | 90 | 1.51k | size_t size = a.size(); | 91 | 1.51k | const A* __restrict a_pos = a.data(); | 92 | 1.51k | UInt8* __restrict c_pos = c.data(); | 93 | 1.51k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.61M | while (a_pos < a_end) { | 96 | 3.61M | *c_pos = Op::apply(*a_pos, b); | 97 | 3.61M | ++a_pos; | 98 | 3.61M | ++c_pos; | 99 | 3.61M | } | 100 | 1.51k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.97k | PaddedPODArray<UInt8>& c) { | 90 | 6.97k | size_t size = a.size(); | 91 | 6.97k | const A* __restrict a_pos = a.data(); | 92 | 6.97k | UInt8* __restrict c_pos = c.data(); | 93 | 6.97k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.59M | while (a_pos < a_end) { | 96 | 7.58M | *c_pos = Op::apply(*a_pos, b); | 97 | 7.58M | ++a_pos; | 98 | 7.58M | ++c_pos; | 99 | 7.58M | } | 100 | 6.97k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 752 | PaddedPODArray<UInt8>& c) { | 90 | 752 | size_t size = a.size(); | 91 | 752 | const A* __restrict a_pos = a.data(); | 92 | 752 | UInt8* __restrict c_pos = c.data(); | 93 | 752 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.93k | while (a_pos < a_end) { | 96 | 3.17k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.17k | ++a_pos; | 98 | 3.17k | ++c_pos; | 99 | 3.17k | } | 100 | 752 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 559 | PaddedPODArray<UInt8>& c) { | 90 | 559 | size_t size = a.size(); | 91 | 559 | const A* __restrict a_pos = a.data(); | 92 | 559 | UInt8* __restrict c_pos = c.data(); | 93 | 559 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 45.8k | while (a_pos < a_end) { | 96 | 45.3k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.3k | ++a_pos; | 98 | 45.3k | ++c_pos; | 99 | 45.3k | } | 100 | 559 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 23 | PaddedPODArray<UInt8>& c) { | 90 | 23 | size_t size = a.size(); | 91 | 23 | const A* __restrict a_pos = a.data(); | 92 | 23 | UInt8* __restrict c_pos = c.data(); | 93 | 23 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 111k | while (a_pos < a_end) { | 96 | 111k | *c_pos = Op::apply(*a_pos, b); | 97 | 111k | ++a_pos; | 98 | 111k | ++c_pos; | 99 | 111k | } | 100 | 23 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 173k | while (a_pos < a_end) { | 96 | 173k | *c_pos = Op::apply(*a_pos, b); | 97 | 173k | ++a_pos; | 98 | 173k | ++c_pos; | 99 | 173k | } | 100 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 475 | PaddedPODArray<UInt8>& c) { | 90 | 475 | size_t size = a.size(); | 91 | 475 | const A* __restrict a_pos = a.data(); | 92 | 475 | UInt8* __restrict c_pos = c.data(); | 93 | 475 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.2k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.2k | ++a_pos; | 98 | 49.2k | ++c_pos; | 99 | 49.2k | } | 100 | 475 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 319 | PaddedPODArray<UInt8>& c) { | 90 | 319 | size_t size = a.size(); | 91 | 319 | const A* __restrict a_pos = a.data(); | 92 | 319 | UInt8* __restrict c_pos = c.data(); | 93 | 319 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.42k | while (a_pos < a_end) { | 96 | 3.10k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.10k | ++a_pos; | 98 | 3.10k | ++c_pos; | 99 | 3.10k | } | 100 | 319 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 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 | 99 | PaddedPODArray<UInt8>& c) { | 90 | 99 | size_t size = a.size(); | 91 | 99 | const A* __restrict a_pos = a.data(); | 92 | 99 | UInt8* __restrict c_pos = c.data(); | 93 | 99 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 600k | while (a_pos < a_end) { | 96 | 600k | *c_pos = Op::apply(*a_pos, b); | 97 | 600k | ++a_pos; | 98 | 600k | ++c_pos; | 99 | 600k | } | 100 | 99 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 102 | PaddedPODArray<UInt8>& c) { | 90 | 102 | size_t size = a.size(); | 91 | 102 | const A* __restrict a_pos = a.data(); | 92 | 102 | UInt8* __restrict c_pos = c.data(); | 93 | 102 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 600k | while (a_pos < a_end) { | 96 | 600k | *c_pos = Op::apply(*a_pos, b); | 97 | 600k | ++a_pos; | 98 | 600k | ++c_pos; | 99 | 600k | } | 100 | 102 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 65.8k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 65.8k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 65.8k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 102 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 288 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 288 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 288 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 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 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 61 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 61 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 61 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 402 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 402 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 402 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_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: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 54 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 748 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 748 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 748 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 222 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 222 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 222 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 228 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 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 | 539 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 539 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 539 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 41 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 41 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 41 | } |
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 | 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 | } |
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 | 75 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 75 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 75 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 81 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 81 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 81 | } |
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 | 20 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 20 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 20 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_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 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 22 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 65 | 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 | 22 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 15 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 41 | 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 | 15 | } |
_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 | 172 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 172 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 592k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 592k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 592k | } |
121 | 172 | } _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 | 64 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 64 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 297k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 297k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 297k | } | 121 | 64 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 65 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 65 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 295k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 295k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 295k | } | 121 | 65 | } |
|
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 | 424 | PaddedPODArray<UInt8>& c) { |
135 | 424 | size_t size = a_offsets.size(); |
136 | 424 | ColumnString::Offset prev_a_offset = 0; |
137 | 424 | ColumnString::Offset prev_b_offset = 0; |
138 | 424 | const auto* a_pos = a_data.data(); |
139 | 424 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.58k | for (size_t i = 0; i < size; ++i) { |
142 | 1.15k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.15k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.15k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.15k | 0); |
146 | | |
147 | 1.15k | prev_a_offset = a_offsets[i]; |
148 | 1.15k | prev_b_offset = b_offsets[i]; |
149 | 1.15k | } |
150 | 424 | } _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 | 386 | PaddedPODArray<UInt8>& c) { | 135 | 386 | size_t size = a_offsets.size(); | 136 | 386 | ColumnString::Offset prev_a_offset = 0; | 137 | 386 | ColumnString::Offset prev_b_offset = 0; | 138 | 386 | const auto* a_pos = a_data.data(); | 139 | 386 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.30k | for (size_t i = 0; i < size; ++i) { | 142 | 918 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 918 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 918 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 918 | 0); | 146 | | | 147 | 918 | prev_a_offset = a_offsets[i]; | 148 | 918 | prev_b_offset = b_offsets[i]; | 149 | 918 | } | 150 | 386 | } |
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.03k | PaddedPODArray<UInt8>& c) { |
157 | 1.03k | size_t size = a_offsets.size(); |
158 | 1.03k | ColumnString::Offset prev_a_offset = 0; |
159 | 1.03k | const auto* a_pos = a_data.data(); |
160 | 1.03k | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.84M | for (size_t i = 0; i < size; ++i) { |
163 | 1.84M | c[i] = Op::apply( |
164 | 1.84M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.84M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.84M | 0); |
167 | | |
168 | 1.84M | prev_a_offset = a_offsets[i]; |
169 | 1.84M | } |
170 | 1.03k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 224 | PaddedPODArray<UInt8>& c) { | 157 | 224 | size_t size = a_offsets.size(); | 158 | 224 | ColumnString::Offset prev_a_offset = 0; | 159 | 224 | const auto* a_pos = a_data.data(); | 160 | 224 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 620k | for (size_t i = 0; i < size; ++i) { | 163 | 619k | c[i] = Op::apply( | 164 | 619k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 619k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 619k | 0); | 167 | | | 168 | 619k | prev_a_offset = a_offsets[i]; | 169 | 619k | } | 170 | 224 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 125 | PaddedPODArray<UInt8>& c) { | 157 | 125 | size_t size = a_offsets.size(); | 158 | 125 | ColumnString::Offset prev_a_offset = 0; | 159 | 125 | const auto* a_pos = a_data.data(); | 160 | 125 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 182k | for (size_t i = 0; i < size; ++i) { | 163 | 182k | c[i] = Op::apply( | 164 | 182k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 182k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 182k | 0); | 167 | | | 168 | 182k | prev_a_offset = a_offsets[i]; | 169 | 182k | } | 170 | 125 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 306 | PaddedPODArray<UInt8>& c) { | 157 | 306 | size_t size = a_offsets.size(); | 158 | 306 | ColumnString::Offset prev_a_offset = 0; | 159 | 306 | const auto* a_pos = a_data.data(); | 160 | 306 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 567k | for (size_t i = 0; i < size; ++i) { | 163 | 567k | c[i] = Op::apply( | 164 | 567k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 567k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 567k | 0); | 167 | | | 168 | 567k | prev_a_offset = a_offsets[i]; | 169 | 567k | } | 170 | 306 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 377 | PaddedPODArray<UInt8>& c) { | 157 | 377 | size_t size = a_offsets.size(); | 158 | 377 | ColumnString::Offset prev_a_offset = 0; | 159 | 377 | const auto* a_pos = a_data.data(); | 160 | 377 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 479k | for (size_t i = 0; i < size; ++i) { | 163 | 479k | c[i] = Op::apply( | 164 | 479k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 479k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 479k | 0); | 167 | | | 168 | 479k | prev_a_offset = a_offsets[i]; | 169 | 479k | } | 170 | 377 | } |
|
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 | 427 | PaddedPODArray<UInt8>& c) { |
189 | 427 | size_t size = a_offsets.size(); |
190 | 427 | ColumnString::Offset prev_a_offset = 0; |
191 | 427 | ColumnString::Offset prev_b_offset = 0; |
192 | 427 | const auto* a_pos = a_data.data(); |
193 | 427 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 1.38k | for (size_t i = 0; i < size; ++i) { |
196 | 953 | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 953 | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 953 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 953 | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 953 | prev_a_offset = a_offsets[i]; |
203 | 953 | prev_b_offset = b_offsets[i]; |
204 | 953 | } |
205 | 427 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 417 | PaddedPODArray<UInt8>& c) { | 189 | 417 | size_t size = a_offsets.size(); | 190 | 417 | ColumnString::Offset prev_a_offset = 0; | 191 | 417 | ColumnString::Offset prev_b_offset = 0; | 192 | 417 | const auto* a_pos = a_data.data(); | 193 | 417 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 1.34k | for (size_t i = 0; i < size; ++i) { | 196 | 932 | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 932 | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 932 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 932 | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 932 | prev_a_offset = a_offsets[i]; | 203 | 932 | prev_b_offset = b_offsets[i]; | 204 | 932 | } | 205 | 417 | } |
_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.4k | PaddedPODArray<UInt8>& c) { |
212 | 20.4k | size_t size = a_offsets.size(); |
213 | 20.4k | 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.4k | } else { |
223 | 20.4k | ColumnString::Offset prev_a_offset = 0; |
224 | 20.4k | const auto* a_pos = a_data.data(); |
225 | 20.4k | const auto* b_pos = b_data.data(); |
226 | 8.81M | for (size_t i = 0; i < size; ++i) { |
227 | 8.79M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 8.79M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 8.79M | b_pos, b_size); |
230 | 8.79M | prev_a_offset = a_offsets[i]; |
231 | 8.79M | } |
232 | 20.4k | } |
233 | 20.4k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 20.3k | PaddedPODArray<UInt8>& c) { | 212 | 20.3k | size_t size = a_offsets.size(); | 213 | 20.3k | 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.3k | } else { | 223 | 20.3k | ColumnString::Offset prev_a_offset = 0; | 224 | 20.3k | const auto* a_pos = a_data.data(); | 225 | 20.3k | const auto* b_pos = b_data.data(); | 226 | 8.75M | for (size_t i = 0; i < size; ++i) { | 227 | 8.73M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 8.73M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 8.73M | b_pos, b_size); | 230 | 8.73M | prev_a_offset = a_offsets[i]; | 231 | 8.73M | } | 232 | 20.3k | } | 233 | 20.3k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 117 | PaddedPODArray<UInt8>& c) { | 212 | 117 | size_t size = a_offsets.size(); | 213 | 117 | 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 | 116 | } else { | 223 | 116 | ColumnString::Offset prev_a_offset = 0; | 224 | 116 | const auto* a_pos = a_data.data(); | 225 | 116 | const auto* b_pos = b_data.data(); | 226 | 59.0k | for (size_t i = 0; i < size; ++i) { | 227 | 58.9k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 58.9k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 58.9k | b_pos, b_size); | 230 | 58.9k | prev_a_offset = a_offsets[i]; | 231 | 58.9k | } | 232 | 116 | } | 233 | 117 | } |
|
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.37k | Op op) { |
298 | 3.37k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
299 | | |
300 | 3.37k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
301 | 3.37k | slot_literal->slot_type); |
302 | 3.37k | if (slot_type == nullptr) { |
303 | 293 | return unsupported_zonemap_filter(ctx); |
304 | 293 | } |
305 | 3.08k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
306 | 3.08k | if (zone_map_ptr == nullptr) { |
307 | 46 | return unsupported_zonemap_filter(ctx); |
308 | 46 | } |
309 | 3.03k | const auto& zone_map = *zone_map_ptr; |
310 | 3.03k | if (!zone_map.has_not_null) { |
311 | 60 | return ZoneMapFilterResult::kNoMatch; |
312 | 60 | } |
313 | 2.97k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
314 | 115 | return unsupported_zonemap_filter(ctx); |
315 | 115 | } |
316 | | |
317 | 2.86k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
318 | 2.86k | const auto& literal = slot_literal->literal; |
319 | 2.86k | const bool literal_is_nan = literal.is_nan(); |
320 | 2.86k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
321 | 2.86k | (effective_op == Op::NE && !literal_is_nan) || |
322 | 2.86k | (effective_op == Op::GT && !literal_is_nan) || |
323 | 2.86k | effective_op == Op::GE; |
324 | 2.86k | 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.80k | switch (effective_op) { |
329 | 1.53k | case Op::EQ: |
330 | 1.53k | return literal < zone_map.min_value || zone_map.max_value < literal |
331 | 1.53k | ? ZoneMapFilterResult::kNoMatch |
332 | 1.53k | : ZoneMapFilterResult::kMayMatch; |
333 | 108 | case Op::NE: |
334 | 108 | return zone_map.min_value == literal && zone_map.max_value == literal |
335 | 108 | ? ZoneMapFilterResult::kNoMatch |
336 | 108 | : ZoneMapFilterResult::kMayMatch; |
337 | 371 | case Op::LT: |
338 | 371 | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
339 | 371 | : ZoneMapFilterResult::kMayMatch; |
340 | 277 | case Op::LE: |
341 | 277 | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
342 | 277 | : ZoneMapFilterResult::kMayMatch; |
343 | 253 | case Op::GT: |
344 | 253 | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
345 | 253 | : ZoneMapFilterResult::kMayMatch; |
346 | 272 | case Op::GE: |
347 | 272 | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
348 | 272 | : ZoneMapFilterResult::kMayMatch; |
349 | 2.80k | } |
350 | | |
351 | | // keep this to avoid compile failure with g++. |
352 | 0 | __builtin_unreachable(); |
353 | 2.80k | } |
354 | | |
355 | 33.4k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
356 | 33.4k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
357 | 33.4k | if (!slot_literal.has_value()) { |
358 | 18.7k | return false; |
359 | 18.7k | } |
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 | 14.6k | if (slot_literal->literal.is_null()) { |
365 | 4 | return false; |
366 | 4 | } |
367 | | |
368 | 14.6k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
369 | 14.6k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
370 | 14.6k | 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 | 14.6k | return true; |
378 | 14.6k | } |
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 | 37.3k | inline std::optional<Op> op_from_name(std::string_view name) { |
442 | 37.3k | if (name == NameEquals::name) { |
443 | 17.4k | return Op::EQ; |
444 | 17.4k | } |
445 | 19.8k | if (name == NameNotEquals::name) { |
446 | 1.45k | return Op::NE; |
447 | 1.45k | } |
448 | 18.3k | if (name == NameLess::name) { |
449 | 5.44k | return Op::LT; |
450 | 5.44k | } |
451 | 12.9k | if (name == NameLessOrEquals::name) { |
452 | 2.11k | return Op::LE; |
453 | 2.11k | } |
454 | 10.8k | if (name == NameGreater::name) { |
455 | 5.94k | return Op::GT; |
456 | 5.94k | } |
457 | 5.02k | if (name == NameGreaterOrEquals::name) { |
458 | 5.02k | return Op::GE; |
459 | 5.02k | } |
460 | 18.4E | return std::nullopt; |
461 | 4.86k | } |
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 | 299k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 468 | 269k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 468 | 1.25k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 468 | 6.77k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 468 | 8.52k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 468 | 3.87k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 468 | 9.73k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
469 | | |
470 | 299k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 470 | 269k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 470 | 1.25k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 470 | 6.78k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 470 | 8.53k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 470 | 3.88k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 470 | 9.72k | FunctionComparison() = default; |
|
471 | | |
472 | 685k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 472 | 678k | 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.18k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 472 | 2.12k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 472 | 1.26k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 472 | 983 | 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 | 121k | const ColumnPtr& col_right_ptr) const { |
478 | 121k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
479 | 121k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
480 | | |
481 | 121k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
482 | 121k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
483 | | |
484 | 121k | DCHECK(!(left_is_const && right_is_const)); |
485 | | |
486 | 121k | if (!left_is_const && !right_is_const) { |
487 | 12.4k | auto col_res = ColumnUInt8::create(); |
488 | | |
489 | 12.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
490 | 12.4k | vec_res.resize(col_left->get_data().size()); |
491 | 12.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
492 | 12.4k | typename PrimitiveTypeTraits<PT>::CppType, |
493 | 12.4k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
494 | 12.4k | vec_res); |
495 | | |
496 | 12.4k | block.replace_by_position(result, std::move(col_res)); |
497 | 109k | } else if (!left_is_const && right_is_const) { |
498 | 43.2k | auto col_res = ColumnUInt8::create(); |
499 | | |
500 | 43.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
501 | 43.2k | vec_res.resize(col_left->size()); |
502 | 43.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
503 | 43.2k | typename PrimitiveTypeTraits<PT>::CppType, |
504 | 43.2k | Op<PT>>::vector_constant(col_left->get_data(), |
505 | 43.2k | col_right->get_element(0), vec_res); |
506 | | |
507 | 43.2k | block.replace_by_position(result, std::move(col_res)); |
508 | 65.8k | } else if (left_is_const && !right_is_const) { |
509 | 65.8k | auto col_res = ColumnUInt8::create(); |
510 | | |
511 | 65.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
512 | 65.8k | vec_res.resize(col_right->size()); |
513 | 65.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
514 | 65.8k | typename PrimitiveTypeTraits<PT>::CppType, |
515 | 65.8k | Op<PT>>::constant_vector(col_left->get_element(0), |
516 | 65.8k | col_right->get_data(), vec_res); |
517 | | |
518 | 65.8k | block.replace_by_position(result, std::move(col_res)); |
519 | 65.8k | } |
520 | 121k | return Status::OK(); |
521 | 121k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 94 | const ColumnPtr& col_right_ptr) const { | 478 | 94 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 94 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 94 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 94 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 94 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 94 | 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 | 64 | } else if (!left_is_const && right_is_const) { | 498 | 30 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 30 | vec_res.resize(col_left->size()); | 502 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 30 | col_right->get_element(0), vec_res); | 506 | | | 507 | 30 | block.replace_by_position(result, std::move(col_res)); | 508 | 30 | } 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 | 94 | return Status::OK(); | 521 | 94 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 544 | const ColumnPtr& col_right_ptr) const { | 478 | 544 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 544 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 544 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 544 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 544 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 544 | if (!left_is_const && !right_is_const) { | 487 | 161 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 161 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 161 | vec_res.resize(col_left->get_data().size()); | 491 | 161 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 161 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 161 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 161 | vec_res); | 495 | | | 496 | 161 | block.replace_by_position(result, std::move(col_res)); | 497 | 383 | } else if (!left_is_const && right_is_const) { | 498 | 383 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 383 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 383 | vec_res.resize(col_left->size()); | 502 | 383 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 383 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 383 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 383 | col_right->get_element(0), vec_res); | 506 | | | 507 | 383 | block.replace_by_position(result, std::move(col_res)); | 508 | 383 | } 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 | 544 | return Status::OK(); | 521 | 544 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 379 | const ColumnPtr& col_right_ptr) const { | 478 | 379 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 379 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 379 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 379 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 379 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 379 | 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 | 176 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 176 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 176 | vec_res.resize(col_left->size()); | 502 | 176 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 176 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 176 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 176 | col_right->get_element(0), vec_res); | 506 | | | 507 | 176 | block.replace_by_position(result, std::move(col_res)); | 508 | 176 | } 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 | 379 | return Status::OK(); | 521 | 379 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 203 | const ColumnPtr& col_right_ptr) const { | 478 | 203 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 203 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 203 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 203 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 203 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 203 | if (!left_is_const && !right_is_const) { | 487 | 117 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 117 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 117 | vec_res.resize(col_left->get_data().size()); | 491 | 117 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 117 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 117 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 117 | vec_res); | 495 | | | 496 | 117 | block.replace_by_position(result, std::move(col_res)); | 497 | 117 | } 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 | 203 | return Status::OK(); | 521 | 203 | } |
_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.08k | const ColumnPtr& col_right_ptr) const { | 478 | 6.08k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 6.08k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 6.08k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 6.08k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 6.08k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 6.08k | if (!left_is_const && !right_is_const) { | 487 | 129 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 129 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 129 | vec_res.resize(col_left->get_data().size()); | 491 | 129 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 129 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 129 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 129 | vec_res); | 495 | | | 496 | 129 | block.replace_by_position(result, std::move(col_res)); | 497 | 5.95k | } else if (!left_is_const && right_is_const) { | 498 | 5.66k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 5.66k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 5.66k | vec_res.resize(col_left->size()); | 502 | 5.66k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 5.66k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 5.66k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 5.66k | col_right->get_element(0), vec_res); | 506 | | | 507 | 5.66k | block.replace_by_position(result, std::move(col_res)); | 508 | 5.66k | } else if (left_is_const && !right_is_const) { | 509 | 288 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 288 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 288 | vec_res.resize(col_right->size()); | 513 | 288 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 288 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 288 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 288 | col_right->get_data(), vec_res); | 517 | | | 518 | 288 | block.replace_by_position(result, std::move(col_res)); | 519 | 288 | } | 520 | 6.08k | return Status::OK(); | 521 | 6.08k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 406 | const ColumnPtr& col_right_ptr) const { | 478 | 406 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 406 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 406 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 406 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 406 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 406 | if (!left_is_const && !right_is_const) { | 487 | 89 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 89 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 89 | vec_res.resize(col_left->get_data().size()); | 491 | 89 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 89 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 89 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 89 | vec_res); | 495 | | | 496 | 89 | block.replace_by_position(result, std::move(col_res)); | 497 | 317 | } 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 | 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 | 406 | return Status::OK(); | 521 | 406 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 3.12k | const ColumnPtr& col_right_ptr) const { | 478 | 3.12k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 3.12k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 3.12k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 3.12k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 3.12k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 3.12k | if (!left_is_const && !right_is_const) { | 487 | 1.02k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.02k | vec_res.resize(col_left->get_data().size()); | 491 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.02k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.02k | vec_res); | 495 | | | 496 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 497 | 2.10k | } else if (!left_is_const && right_is_const) { | 498 | 2.04k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.04k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.04k | vec_res.resize(col_left->size()); | 502 | 2.04k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.04k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.04k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.04k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.04k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.04k | } else if (left_is_const && !right_is_const) { | 509 | 61 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 61 | vec_res.resize(col_right->size()); | 513 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 61 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 61 | col_right->get_data(), vec_res); | 517 | | | 518 | 61 | block.replace_by_position(result, std::move(col_res)); | 519 | 61 | } | 520 | 3.12k | return Status::OK(); | 521 | 3.12k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.95k | const ColumnPtr& col_right_ptr) const { | 478 | 2.95k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.95k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.95k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.95k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.95k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.95k | if (!left_is_const && !right_is_const) { | 487 | 163 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 163 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 163 | vec_res.resize(col_left->get_data().size()); | 491 | 163 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 163 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 163 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 163 | vec_res); | 495 | | | 496 | 163 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.79k | } else if (!left_is_const && right_is_const) { | 498 | 2.39k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.39k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.39k | vec_res.resize(col_left->size()); | 502 | 2.39k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.39k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.39k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.39k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.39k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.39k | } else if (left_is_const && !right_is_const) { | 509 | 401 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 401 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 401 | vec_res.resize(col_right->size()); | 513 | 401 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 401 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 401 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 401 | col_right->get_data(), vec_res); | 517 | | | 518 | 401 | block.replace_by_position(result, std::move(col_res)); | 519 | 401 | } | 520 | 2.95k | return Status::OK(); | 521 | 2.95k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 92 | const ColumnPtr& col_right_ptr) const { | 478 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 92 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 92 | if (!left_is_const && !right_is_const) { | 487 | 51 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 51 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 51 | vec_res.resize(col_left->get_data().size()); | 491 | 51 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 51 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 51 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 51 | vec_res); | 495 | | | 496 | 51 | block.replace_by_position(result, std::move(col_res)); | 497 | 51 | } 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 | 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 | 92 | return Status::OK(); | 521 | 92 | } |
_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.81k | const ColumnPtr& col_right_ptr) const { | 478 | 2.81k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.81k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.81k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.81k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.81k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.81k | if (!left_is_const && !right_is_const) { | 487 | 794 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 794 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 794 | vec_res.resize(col_left->get_data().size()); | 491 | 794 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 794 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 794 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 794 | vec_res); | 495 | | | 496 | 794 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.01k | } 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.81k | return Status::OK(); | 521 | 2.81k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 71 | const ColumnPtr& col_right_ptr) const { | 478 | 71 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 71 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 71 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 71 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 71 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 71 | if (!left_is_const && !right_is_const) { | 487 | 71 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 71 | vec_res.resize(col_left->get_data().size()); | 491 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 71 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 71 | vec_res); | 495 | | | 496 | 71 | block.replace_by_position(result, std::move(col_res)); | 497 | 71 | } 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 | 71 | return Status::OK(); | 521 | 71 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 875 | const ColumnPtr& col_right_ptr) const { | 478 | 875 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 875 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 875 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 875 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 875 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 875 | if (!left_is_const && !right_is_const) { | 487 | 84 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 84 | vec_res.resize(col_left->get_data().size()); | 491 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 84 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 84 | vec_res); | 495 | | | 496 | 84 | block.replace_by_position(result, std::move(col_res)); | 497 | 791 | } else if (!left_is_const && right_is_const) { | 498 | 791 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 791 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 791 | vec_res.resize(col_left->size()); | 502 | 791 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 791 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 791 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 791 | col_right->get_element(0), vec_res); | 506 | | | 507 | 791 | block.replace_by_position(result, std::move(col_res)); | 508 | 791 | } 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 | 875 | return Status::OK(); | 521 | 875 | } |
_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 | 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 | 38 | } 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.67k | const ColumnPtr& col_right_ptr) const { | 478 | 1.67k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.67k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.67k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.67k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.67k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.67k | if (!left_is_const && !right_is_const) { | 487 | 1.40k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.40k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.40k | vec_res.resize(col_left->get_data().size()); | 491 | 1.40k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.40k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.40k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.40k | vec_res); | 495 | | | 496 | 1.40k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.40k | } else if (!left_is_const && right_is_const) { | 498 | 273 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 273 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 273 | vec_res.resize(col_left->size()); | 502 | 273 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 273 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 273 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 273 | col_right->get_element(0), vec_res); | 506 | | | 507 | 273 | block.replace_by_position(result, std::move(col_res)); | 508 | 273 | } 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.67k | return Status::OK(); | 521 | 1.67k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.16k | const ColumnPtr& col_right_ptr) const { | 478 | 1.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.16k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.16k | if (!left_is_const && !right_is_const) { | 487 | 379 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 379 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 379 | vec_res.resize(col_left->get_data().size()); | 491 | 379 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 379 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 379 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 379 | vec_res); | 495 | | | 496 | 379 | block.replace_by_position(result, std::move(col_res)); | 497 | 781 | } 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 | 748 | } else if (left_is_const && !right_is_const) { | 509 | 748 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 748 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 748 | vec_res.resize(col_right->size()); | 513 | 748 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 748 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 748 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 748 | col_right->get_data(), vec_res); | 517 | | | 518 | 748 | block.replace_by_position(result, std::move(col_res)); | 519 | 748 | } | 520 | 1.16k | return Status::OK(); | 521 | 1.16k | } |
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.26k | const ColumnPtr& col_right_ptr) const { | 478 | 1.26k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.26k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.26k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.26k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.26k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.26k | if (!left_is_const && !right_is_const) { | 487 | 1.22k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.22k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.22k | vec_res.resize(col_left->get_data().size()); | 491 | 1.22k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.22k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.22k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.22k | vec_res); | 495 | | | 496 | 1.22k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.22k | } 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.26k | return Status::OK(); | 521 | 1.26k | } |
_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.62k | const ColumnPtr& col_right_ptr) const { | 478 | 1.62k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.62k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.62k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.62k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.62k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.62k | if (!left_is_const && !right_is_const) { | 487 | 71 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 71 | vec_res.resize(col_left->get_data().size()); | 491 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 71 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 71 | vec_res); | 495 | | | 496 | 71 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.55k | } else if (!left_is_const && right_is_const) { | 498 | 1.33k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.33k | vec_res.resize(col_left->size()); | 502 | 1.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.33k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.33k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.33k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.33k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.33k | } else if (left_is_const && !right_is_const) { | 509 | 222 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 222 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 222 | vec_res.resize(col_right->size()); | 513 | 222 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 222 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 222 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 222 | col_right->get_data(), vec_res); | 517 | | | 518 | 222 | block.replace_by_position(result, std::move(col_res)); | 519 | 222 | } | 520 | 1.62k | return Status::OK(); | 521 | 1.62k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.36k | const ColumnPtr& col_right_ptr) const { | 478 | 2.36k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.36k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.36k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.36k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.36k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.36k | if (!left_is_const && !right_is_const) { | 487 | 129 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 129 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 129 | vec_res.resize(col_left->get_data().size()); | 491 | 129 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 129 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 129 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 129 | vec_res); | 495 | | | 496 | 129 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.24k | } else if (!left_is_const && right_is_const) { | 498 | 2.01k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.01k | vec_res.resize(col_left->size()); | 502 | 2.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.01k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.01k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.01k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.01k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.01k | } else if (left_is_const && !right_is_const) { | 509 | 228 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 228 | vec_res.resize(col_right->size()); | 513 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 228 | col_right->get_data(), vec_res); | 517 | | | 518 | 228 | block.replace_by_position(result, std::move(col_res)); | 519 | 228 | } | 520 | 2.36k | return Status::OK(); | 521 | 2.36k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 67.9k | const ColumnPtr& col_right_ptr) const { | 478 | 67.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 67.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 67.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 67.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 67.9k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 67.9k | if (!left_is_const && !right_is_const) { | 487 | 58 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 58 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 58 | vec_res.resize(col_left->get_data().size()); | 491 | 58 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 58 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 58 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 58 | vec_res); | 495 | | | 496 | 58 | block.replace_by_position(result, std::move(col_res)); | 497 | 67.8k | } else if (!left_is_const && right_is_const) { | 498 | 5.33k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 5.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 5.33k | vec_res.resize(col_left->size()); | 502 | 5.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 5.33k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 5.33k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 5.33k | col_right->get_element(0), vec_res); | 506 | | | 507 | 5.33k | 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.9k | return Status::OK(); | 521 | 67.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.47k | const ColumnPtr& col_right_ptr) const { | 478 | 2.47k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.47k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.47k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.47k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.47k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.47k | if (!left_is_const && !right_is_const) { | 487 | 264 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 264 | vec_res.resize(col_left->get_data().size()); | 491 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 264 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 264 | vec_res); | 495 | | | 496 | 264 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.21k | } else if (!left_is_const && right_is_const) { | 498 | 1.67k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.67k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.67k | vec_res.resize(col_left->size()); | 502 | 1.67k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.67k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.67k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.67k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.67k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.67k | } else if (left_is_const && !right_is_const) { | 509 | 539 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 539 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 539 | vec_res.resize(col_right->size()); | 513 | 539 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 539 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 539 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 539 | col_right->get_data(), vec_res); | 517 | | | 518 | 539 | block.replace_by_position(result, std::move(col_res)); | 519 | 539 | } | 520 | 2.47k | return Status::OK(); | 521 | 2.47k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 243 | const ColumnPtr& col_right_ptr) const { | 478 | 243 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 243 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 243 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 243 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 243 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 243 | 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 | 241 | } 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 | 41 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 41 | vec_res.resize(col_right->size()); | 513 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 41 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 41 | col_right->get_data(), vec_res); | 517 | | | 518 | 41 | block.replace_by_position(result, std::move(col_res)); | 519 | 41 | } | 520 | 243 | return Status::OK(); | 521 | 243 | } |
_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 | 219 | const ColumnPtr& col_right_ptr) const { | 478 | 219 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 219 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 219 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 219 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 219 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 220 | 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 | 200 | } 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 | 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 | 219 | return Status::OK(); | 521 | 219 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 543 | const ColumnPtr& col_right_ptr) const { | 478 | 543 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 543 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 543 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 543 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 543 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 544 | if (!left_is_const && !right_is_const) { | 487 | 32 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 32 | vec_res.resize(col_left->get_data().size()); | 491 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 32 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 32 | vec_res); | 495 | | | 496 | 32 | block.replace_by_position(result, std::move(col_res)); | 497 | 512 | } else if (!left_is_const && right_is_const) { | 498 | 512 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 512 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 512 | vec_res.resize(col_left->size()); | 502 | 512 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 512 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 512 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 512 | col_right->get_element(0), vec_res); | 506 | | | 507 | 512 | 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 | 543 | return Status::OK(); | 521 | 543 | } |
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 | 33 | const ColumnPtr& col_right_ptr) const { | 478 | 33 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 33 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 33 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 33 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 33 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 33 | 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 | 33 | } else if (!left_is_const && right_is_const) { | 498 | 33 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 33 | vec_res.resize(col_left->size()); | 502 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 33 | col_right->get_element(0), vec_res); | 506 | | | 507 | 33 | block.replace_by_position(result, std::move(col_res)); | 508 | 33 | } 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 | 33 | return Status::OK(); | 521 | 33 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 488 | const ColumnPtr& col_right_ptr) const { | 478 | 488 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 488 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 488 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 488 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 488 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 488 | 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 | 487 | } else if (!left_is_const && right_is_const) { | 498 | 481 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 481 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 481 | vec_res.resize(col_left->size()); | 502 | 481 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 481 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 481 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 481 | col_right->get_element(0), vec_res); | 506 | | | 507 | 481 | block.replace_by_position(result, std::move(col_res)); | 508 | 481 | } 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 | 488 | return Status::OK(); | 521 | 488 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 120 | const ColumnPtr& col_right_ptr) const { | 478 | 120 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 120 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 120 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 120 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 120 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 121 | 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 | 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 | 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 | 120 | return Status::OK(); | 521 | 120 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 405 | const ColumnPtr& col_right_ptr) const { | 478 | 405 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 405 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 405 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 405 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 405 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 406 | if (!left_is_const && !right_is_const) { | 487 | 359 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 359 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 359 | vec_res.resize(col_left->get_data().size()); | 491 | 359 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 359 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 359 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 359 | vec_res); | 495 | | | 496 | 359 | block.replace_by_position(result, std::move(col_res)); | 497 | 359 | } else if (!left_is_const && right_is_const) { | 498 | 47 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 47 | vec_res.resize(col_left->size()); | 502 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 47 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 47 | col_right->get_element(0), vec_res); | 506 | | | 507 | 47 | 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 | 405 | return Status::OK(); | 521 | 405 | } |
_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 | 55 | const ColumnPtr& col_right_ptr) const { | 478 | 55 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 55 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 55 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 55 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 55 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 55 | 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 | 55 | } else if (!left_is_const && right_is_const) { | 498 | 55 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 55 | vec_res.resize(col_left->size()); | 502 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 55 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 55 | col_right->get_element(0), vec_res); | 506 | | | 507 | 55 | block.replace_by_position(result, std::move(col_res)); | 508 | 55 | } 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 | 55 | return Status::OK(); | 521 | 55 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 65 | const ColumnPtr& col_right_ptr) const { | 478 | 65 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 65 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 65 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 65 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 65 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 65 | 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 | 65 | } else if (!left_is_const && right_is_const) { | 498 | 65 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 65 | vec_res.resize(col_left->size()); | 502 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 65 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 65 | col_right->get_element(0), vec_res); | 506 | | | 507 | 65 | block.replace_by_position(result, std::move(col_res)); | 508 | 65 | } 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 | 65 | return Status::OK(); | 521 | 65 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.51k | const ColumnPtr& col_right_ptr) const { | 478 | 1.51k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.51k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.51k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.51k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.51k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.51k | if (!left_is_const && !right_is_const) { | 487 | 19 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 19 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 19 | vec_res.resize(col_left->get_data().size()); | 491 | 19 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 19 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 19 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 19 | vec_res); | 495 | | | 496 | 19 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.49k | } else if (!left_is_const && right_is_const) { | 498 | 1.49k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.49k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.49k | vec_res.resize(col_left->size()); | 502 | 1.49k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.49k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.49k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.49k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.49k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.49k | } 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.51k | return Status::OK(); | 521 | 1.51k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 732 | const ColumnPtr& col_right_ptr) const { | 478 | 732 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 732 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 732 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 732 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 732 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 732 | if (!left_is_const && !right_is_const) { | 487 | 16 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 16 | vec_res.resize(col_left->get_data().size()); | 491 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 16 | vec_res); | 495 | | | 496 | 16 | block.replace_by_position(result, std::move(col_res)); | 497 | 716 | } else if (!left_is_const && right_is_const) { | 498 | 716 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 716 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 716 | vec_res.resize(col_left->size()); | 502 | 716 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 716 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 716 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 716 | col_right->get_element(0), vec_res); | 506 | | | 507 | 716 | block.replace_by_position(result, std::move(col_res)); | 508 | 716 | } 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 | 732 | return Status::OK(); | 521 | 732 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_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 | 23 | 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 | 23 | } else if (!left_is_const && right_is_const) { | 498 | 23 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 23 | vec_res.resize(col_left->size()); | 502 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 23 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 23 | col_right->get_element(0), vec_res); | 506 | | | 507 | 23 | block.replace_by_position(result, std::move(col_res)); | 508 | 23 | } 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_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 | 583 | const ColumnPtr& col_right_ptr) const { | 478 | 583 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 583 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 583 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 583 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 583 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 583 | 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 | 475 | } else if (!left_is_const && right_is_const) { | 498 | 475 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 475 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 475 | vec_res.resize(col_left->size()); | 502 | 475 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 475 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 475 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 475 | col_right->get_element(0), vec_res); | 506 | | | 507 | 475 | block.replace_by_position(result, std::move(col_res)); | 508 | 475 | } 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 | 583 | return Status::OK(); | 521 | 583 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 24 | const ColumnPtr& col_right_ptr) const { | 478 | 24 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 24 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 24 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 24 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 24 | 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 | 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 | 24 | return Status::OK(); | 521 | 24 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 124 | const ColumnPtr& col_right_ptr) const { | 478 | 124 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 124 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 124 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 124 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 124 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 124 | if (!left_is_const && !right_is_const) { | 487 | 25 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 25 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 25 | vec_res.resize(col_left->get_data().size()); | 491 | 25 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 25 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 25 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 25 | vec_res); | 495 | | | 496 | 25 | block.replace_by_position(result, std::move(col_res)); | 497 | 99 | } else if (!left_is_const && right_is_const) { | 498 | 99 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 99 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 99 | vec_res.resize(col_left->size()); | 502 | 99 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 99 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 99 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 99 | col_right->get_element(0), vec_res); | 506 | | | 507 | 99 | block.replace_by_position(result, std::move(col_res)); | 508 | 99 | } 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 | 124 | return Status::OK(); | 521 | 124 | } |
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.23k | const ColumnPtr& col_right_ptr) const { | 478 | 2.23k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.23k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.23k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.23k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.23k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.23k | if (!left_is_const && !right_is_const) { | 487 | 1.85k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.85k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.85k | vec_res.resize(col_left->get_data().size()); | 491 | 1.85k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.85k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.85k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.85k | vec_res); | 495 | | | 496 | 1.85k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.85k | } else if (!left_is_const && right_is_const) { | 498 | 385 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 385 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 385 | vec_res.resize(col_left->size()); | 502 | 385 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 385 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 385 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 385 | col_right->get_element(0), vec_res); | 506 | | | 507 | 385 | 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.23k | return Status::OK(); | 521 | 2.23k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 299 | const ColumnPtr& col_right_ptr) const { | 478 | 299 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 299 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 299 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 299 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 299 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 299 | if (!left_is_const && !right_is_const) { | 487 | 240 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 240 | vec_res.resize(col_left->get_data().size()); | 491 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 240 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 240 | vec_res); | 495 | | | 496 | 240 | block.replace_by_position(result, std::move(col_res)); | 497 | 240 | } 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 | 299 | return Status::OK(); | 521 | 299 | } |
_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.34k | const ColumnPtr& col_right_ptr) const { | 478 | 2.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.34k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.34k | if (!left_is_const && !right_is_const) { | 487 | 220 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 220 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 220 | vec_res.resize(col_left->get_data().size()); | 491 | 220 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 220 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 220 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 220 | vec_res); | 495 | | | 496 | 220 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.12k | } else if (!left_is_const && right_is_const) { | 498 | 1.88k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.88k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.88k | vec_res.resize(col_left->size()); | 502 | 1.88k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.88k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.88k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.88k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.88k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.88k | } 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.34k | return Status::OK(); | 521 | 2.34k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 170 | const ColumnPtr& col_right_ptr) const { | 478 | 170 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 170 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 170 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 170 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 170 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 170 | if (!left_is_const && !right_is_const) { | 487 | 156 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 156 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 156 | vec_res.resize(col_left->get_data().size()); | 491 | 156 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 156 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 156 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 156 | vec_res); | 495 | | | 496 | 156 | block.replace_by_position(result, std::move(col_res)); | 497 | 156 | } 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 | 170 | return Status::OK(); | 521 | 170 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.00k | const ColumnPtr& col_right_ptr) const { | 478 | 2.00k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.00k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.00k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.00k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.00k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.00k | if (!left_is_const && !right_is_const) { | 487 | 878 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 878 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 878 | vec_res.resize(col_left->get_data().size()); | 491 | 878 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 878 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 878 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 878 | vec_res); | 495 | | | 496 | 878 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.13k | } else if (!left_is_const && right_is_const) { | 498 | 939 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 939 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 939 | vec_res.resize(col_left->size()); | 502 | 939 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 939 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 939 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 939 | col_right->get_element(0), vec_res); | 506 | | | 507 | 939 | block.replace_by_position(result, std::move(col_res)); | 508 | 939 | } 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 | 2.00k | return Status::OK(); | 521 | 2.00k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 923 | const ColumnPtr& col_right_ptr) const { | 478 | 923 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 923 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 923 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 923 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 923 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 923 | if (!left_is_const && !right_is_const) { | 487 | 301 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 301 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 301 | vec_res.resize(col_left->get_data().size()); | 491 | 301 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 301 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 301 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 301 | vec_res); | 495 | | | 496 | 301 | block.replace_by_position(result, std::move(col_res)); | 497 | 622 | } else if (!left_is_const && right_is_const) { | 498 | 548 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 548 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 548 | vec_res.resize(col_left->size()); | 502 | 548 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 548 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 548 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 548 | col_right->get_element(0), vec_res); | 506 | | | 507 | 548 | block.replace_by_position(result, std::move(col_res)); | 508 | 548 | } else if (left_is_const && !right_is_const) { | 509 | 75 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 75 | vec_res.resize(col_right->size()); | 513 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 75 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 75 | col_right->get_data(), vec_res); | 517 | | | 518 | 75 | block.replace_by_position(result, std::move(col_res)); | 519 | 75 | } | 520 | 923 | return Status::OK(); | 521 | 923 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 307 | const ColumnPtr& col_right_ptr) const { | 478 | 307 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 307 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 307 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 307 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 307 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 307 | if (!left_is_const && !right_is_const) { | 487 | 134 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 134 | vec_res.resize(col_left->get_data().size()); | 491 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 134 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 134 | vec_res); | 495 | | | 496 | 134 | block.replace_by_position(result, std::move(col_res)); | 497 | 173 | } else if (!left_is_const && right_is_const) { | 498 | 92 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 92 | vec_res.resize(col_left->size()); | 502 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 92 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 92 | col_right->get_element(0), vec_res); | 506 | | | 507 | 92 | block.replace_by_position(result, std::move(col_res)); | 508 | 92 | } else if (left_is_const && !right_is_const) { | 509 | 81 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 81 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 81 | vec_res.resize(col_right->size()); | 513 | 81 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 81 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 81 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 81 | col_right->get_data(), vec_res); | 517 | | | 518 | 81 | block.replace_by_position(result, std::move(col_res)); | 519 | 81 | } | 520 | 307 | return Status::OK(); | 521 | 307 | } |
_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 | 130 | const ColumnPtr& col_right_ptr) const { | 478 | 130 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 130 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 130 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 130 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 130 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 130 | if (!left_is_const && !right_is_const) { | 487 | 130 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 130 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 130 | vec_res.resize(col_left->get_data().size()); | 491 | 130 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 130 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 130 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 130 | vec_res); | 495 | | | 496 | 130 | block.replace_by_position(result, std::move(col_res)); | 497 | 130 | } 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 | 130 | return Status::OK(); | 521 | 130 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 940 | const ColumnPtr& col_right_ptr) const { | 478 | 940 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 940 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 940 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 940 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 940 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 940 | 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 | 808 | } else if (!left_is_const && right_is_const) { | 498 | 808 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 808 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 808 | vec_res.resize(col_left->size()); | 502 | 808 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 808 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 808 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 808 | col_right->get_element(0), vec_res); | 506 | | | 507 | 808 | block.replace_by_position(result, std::move(col_res)); | 508 | 808 | } 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 | 940 | return Status::OK(); | 521 | 940 | } |
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 | 31 | const ColumnPtr& col_right_ptr) const { | 478 | 31 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 31 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 31 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 31 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 31 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 31 | 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 | 31 | } 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 | 31 | return Status::OK(); | 521 | 31 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 558 | const ColumnPtr& col_right_ptr) const { | 478 | 558 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 558 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 558 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 558 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 558 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 558 | if (!left_is_const && !right_is_const) { | 487 | 397 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 397 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 397 | vec_res.resize(col_left->get_data().size()); | 491 | 397 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 397 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 397 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 397 | vec_res); | 495 | | | 496 | 397 | block.replace_by_position(result, std::move(col_res)); | 497 | 397 | } else if (!left_is_const && right_is_const) { | 498 | 158 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 158 | vec_res.resize(col_left->size()); | 502 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 158 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 158 | col_right->get_element(0), vec_res); | 506 | | | 507 | 158 | block.replace_by_position(result, std::move(col_res)); | 508 | 158 | } 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 | 558 | return Status::OK(); | 521 | 558 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 61 | const ColumnPtr& col_right_ptr) const { | 478 | 61 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 61 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 61 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 61 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 61 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 61 | 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 | 61 | } else if (!left_is_const && right_is_const) { | 498 | 61 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 61 | vec_res.resize(col_left->size()); | 502 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 61 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 61 | col_right->get_element(0), vec_res); | 506 | | | 507 | 61 | block.replace_by_position(result, std::move(col_res)); | 508 | 61 | } 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 | 61 | return Status::OK(); | 521 | 61 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 63 | const ColumnPtr& col_right_ptr) const { | 478 | 63 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 63 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 63 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 63 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 63 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 63 | 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 | 39 | } 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 | 63 | return Status::OK(); | 521 | 63 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 62 | const ColumnPtr& col_right_ptr) const { | 478 | 62 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 62 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 62 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 62 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 62 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 62 | 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 | 60 | } else if (!left_is_const && right_is_const) { | 498 | 60 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 60 | vec_res.resize(col_left->size()); | 502 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 60 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 60 | col_right->get_element(0), vec_res); | 506 | | | 507 | 60 | block.replace_by_position(result, std::move(col_res)); | 508 | 60 | } 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 | 62 | return Status::OK(); | 521 | 62 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 81 | const ColumnPtr& col_right_ptr) const { | 478 | 81 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 81 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 81 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 81 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 81 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 81 | 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 | 81 | } else if (!left_is_const && right_is_const) { | 498 | 81 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 81 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 81 | vec_res.resize(col_left->size()); | 502 | 81 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 81 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 81 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 81 | col_right->get_element(0), vec_res); | 506 | | | 507 | 81 | block.replace_by_position(result, std::move(col_res)); | 508 | 81 | } 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 | 81 | return Status::OK(); | 521 | 81 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 6.99k | const ColumnPtr& col_right_ptr) const { | 478 | 6.99k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 6.99k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 6.99k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 6.99k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 6.99k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 6.99k | 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 | 6.97k | } else if (!left_is_const && right_is_const) { | 498 | 6.96k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 6.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 6.96k | vec_res.resize(col_left->size()); | 502 | 6.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 6.96k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 6.96k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 6.96k | col_right->get_element(0), vec_res); | 506 | | | 507 | 6.96k | block.replace_by_position(result, std::move(col_res)); | 508 | 6.96k | } else if (left_is_const && !right_is_const) { | 509 | 20 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 20 | vec_res.resize(col_right->size()); | 513 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 20 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 20 | col_right->get_data(), vec_res); | 517 | | | 518 | 20 | block.replace_by_position(result, std::move(col_res)); | 519 | 20 | } | 520 | 6.99k | return Status::OK(); | 521 | 6.99k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 666 | const ColumnPtr& col_right_ptr) const { | 478 | 666 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 666 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 666 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 666 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 666 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 666 | if (!left_is_const && !right_is_const) { | 487 | 71 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 71 | vec_res.resize(col_left->get_data().size()); | 491 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 71 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 71 | vec_res); | 495 | | | 496 | 71 | block.replace_by_position(result, std::move(col_res)); | 497 | 595 | } else if (!left_is_const && right_is_const) { | 498 | 559 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 559 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 559 | vec_res.resize(col_left->size()); | 502 | 559 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 559 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 559 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 559 | col_right->get_element(0), vec_res); | 506 | | | 507 | 559 | block.replace_by_position(result, std::move(col_res)); | 508 | 559 | } 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 | 666 | return Status::OK(); | 521 | 666 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_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 | 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 | 46 | } else if (!left_is_const && right_is_const) { | 498 | 46 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 46 | vec_res.resize(col_left->size()); | 502 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 46 | col_right->get_element(0), vec_res); | 506 | | | 507 | 46 | block.replace_by_position(result, std::move(col_res)); | 508 | 46 | } 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 | } |
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 | 423 | const ColumnPtr& col_right_ptr) const { | 478 | 423 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 423 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 423 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 423 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 423 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 423 | 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 | 319 | } else if (!left_is_const && right_is_const) { | 498 | 319 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 319 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 319 | vec_res.resize(col_left->size()); | 502 | 319 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 319 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 319 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 319 | col_right->get_element(0), vec_res); | 506 | | | 507 | 319 | block.replace_by_position(result, std::move(col_res)); | 508 | 319 | } 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 | 423 | return Status::OK(); | 521 | 423 | } |
_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 | 122 | const ColumnPtr& col_right_ptr) const { | 478 | 122 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 122 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 122 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 122 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 122 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 122 | 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 | 102 | } else if (!left_is_const && right_is_const) { | 498 | 102 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 102 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 102 | vec_res.resize(col_left->size()); | 502 | 102 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 102 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 102 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 102 | col_right->get_element(0), vec_res); | 506 | | | 507 | 102 | block.replace_by_position(result, std::move(col_res)); | 508 | 102 | } 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 | 122 | return Status::OK(); | 521 | 122 | } |
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.17k | const ColumnWithTypeAndName& col_right) const { |
525 | 3.17k | auto call = [&](const auto& type) -> bool { |
526 | 3.17k | using DispatchType = std::decay_t<decltype(type)>; |
527 | 3.17k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
528 | 3.17k | block, result, col_left, col_right); |
529 | 3.17k | return true; |
530 | 3.17k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 99 | auto call = [&](const auto& type) -> bool { | 526 | 99 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 99 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 99 | block, result, col_left, col_right); | 529 | 99 | return true; | 530 | 99 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 103 | auto call = [&](const auto& type) -> bool { | 526 | 103 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 103 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 103 | block, result, col_left, col_right); | 529 | 103 | return true; | 530 | 103 | }; |
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 | 896 | auto call = [&](const auto& type) -> bool { | 526 | 896 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 896 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 896 | block, result, col_left, col_right); | 529 | 896 | return true; | 530 | 896 | }; |
_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 | 68 | auto call = [&](const auto& type) -> bool { | 526 | 68 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 68 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 68 | block, result, col_left, col_right); | 529 | 68 | return true; | 530 | 68 | }; |
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 | 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_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 | 691 | auto call = [&](const auto& type) -> bool { | 526 | 691 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 691 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 691 | block, result, col_left, col_right); | 529 | 691 | return true; | 530 | 691 | }; |
_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 | 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 70 | auto call = [&](const auto& type) -> bool { | 526 | 70 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 70 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 70 | block, result, col_left, col_right); | 529 | 70 | return true; | 530 | 70 | }; |
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 | 74 | auto call = [&](const auto& type) -> bool { | 526 | 74 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 74 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 74 | block, result, col_left, col_right); | 529 | 74 | return true; | 530 | 74 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 11 | auto call = [&](const auto& type) -> bool { | 526 | 11 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 11 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 11 | block, result, col_left, col_right); | 529 | 11 | return true; | 530 | 11 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 162 | auto call = [&](const auto& type) -> bool { | 526 | 162 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 162 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 162 | block, result, col_left, col_right); | 529 | 162 | return true; | 530 | 162 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 187 | auto call = [&](const auto& type) -> bool { | 526 | 187 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 187 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 187 | block, result, col_left, col_right); | 529 | 187 | return true; | 530 | 187 | }; |
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 | 483 | auto call = [&](const auto& type) -> bool { | 526 | 483 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 483 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 483 | block, result, col_left, col_right); | 529 | 483 | return true; | 530 | 483 | }; |
_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 | 6 | auto call = [&](const auto& type) -> bool { | 526 | 6 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 6 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 6 | block, result, col_left, col_right); | 529 | 6 | return true; | 530 | 6 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 88 | auto call = [&](const auto& type) -> bool { | 526 | 88 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 88 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 88 | block, result, col_left, col_right); | 529 | 88 | return true; | 530 | 88 | }; |
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 | 81 | auto call = [&](const auto& type) -> bool { | 526 | 81 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 81 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 81 | block, result, col_left, col_right); | 529 | 81 | return true; | 530 | 81 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 6 | auto call = [&](const auto& type) -> bool { | 526 | 6 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 6 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 6 | block, result, col_left, col_right); | 529 | 6 | return true; | 530 | 6 | }; |
|
531 | | |
532 | 3.17k | 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.17k | 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.17k | return Status::OK(); |
543 | 3.17k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 1.11k | const ColumnWithTypeAndName& col_right) const { | 525 | 1.11k | auto call = [&](const auto& type) -> bool { | 526 | 1.11k | using DispatchType = std::decay_t<decltype(type)>; | 527 | 1.11k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 1.11k | block, result, col_left, col_right); | 529 | 1.11k | return true; | 530 | 1.11k | }; | 531 | | | 532 | 1.11k | 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.11k | 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.11k | return Status::OK(); | 543 | 1.11k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 125 | const ColumnWithTypeAndName& col_right) const { | 525 | 125 | auto call = [&](const auto& type) -> bool { | 526 | 125 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 125 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 125 | block, result, col_left, col_right); | 529 | 125 | return true; | 530 | 125 | }; | 531 | | | 532 | 125 | 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 | 125 | 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 | 125 | return Status::OK(); | 543 | 125 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 767 | const ColumnWithTypeAndName& col_right) const { | 525 | 767 | auto call = [&](const auto& type) -> bool { | 526 | 767 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 767 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 767 | block, result, col_left, col_right); | 529 | 767 | return true; | 530 | 767 | }; | 531 | | | 532 | 767 | 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 | 767 | 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 | 767 | return Status::OK(); | 543 | 767 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 156 | const ColumnWithTypeAndName& col_right) const { | 525 | 156 | auto call = [&](const auto& type) -> bool { | 526 | 156 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 156 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 156 | block, result, col_left, col_right); | 529 | 156 | return true; | 530 | 156 | }; | 531 | | | 532 | 156 | 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 | 156 | 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 | 156 | return Status::OK(); | 543 | 156 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 831 | const ColumnWithTypeAndName& col_right) const { | 525 | 831 | auto call = [&](const auto& type) -> bool { | 526 | 831 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 831 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 831 | block, result, col_left, col_right); | 529 | 831 | return true; | 530 | 831 | }; | 531 | | | 532 | 831 | 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 | 831 | 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 | 831 | return Status::OK(); | 543 | 831 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 181 | const ColumnWithTypeAndName& col_right) const { | 525 | 181 | auto call = [&](const auto& type) -> bool { | 526 | 181 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 181 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 181 | block, result, col_left, col_right); | 529 | 181 | return true; | 530 | 181 | }; | 531 | | | 532 | 181 | 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 | 181 | 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 | 181 | return Status::OK(); | 543 | 181 | } |
|
544 | | |
545 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
546 | 22.3k | const IColumn* c1) const { |
547 | 22.3k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
548 | 22.3k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
549 | 22.3k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
550 | 22.3k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
551 | 22.3k | 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.3k | DCHECK(!(c0_const && c1_const)); |
556 | 22.3k | const ColumnString::Chars* c0_const_chars = nullptr; |
557 | 22.3k | const ColumnString::Chars* c1_const_chars = nullptr; |
558 | 22.3k | ColumnString::Offset c0_const_size = 0; |
559 | 22.3k | ColumnString::Offset c1_const_size = 0; |
560 | | |
561 | 22.3k | 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.3k | if (c1_const) { |
575 | 21.3k | const ColumnString* c1_const_string = |
576 | 21.3k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
577 | | |
578 | 21.3k | if (c1_const_string) { |
579 | 21.3k | c1_const_chars = &c1_const_string->get_chars(); |
580 | 21.3k | c1_const_size = c1_const_string->get_offsets()[0]; |
581 | 18.4E | } else { |
582 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
583 | 18.4E | c1->get_name(), name); |
584 | 18.4E | } |
585 | 21.3k | } |
586 | | |
587 | 22.3k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
588 | | |
589 | 22.3k | auto c_res = ColumnUInt8::create(); |
590 | 22.3k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
591 | 22.3k | vec_res.resize(c0->size()); |
592 | | |
593 | 22.3k | if (c0_string && c1_string) { |
594 | 851 | StringImpl::string_vector_string_vector( |
595 | 851 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
596 | 851 | c1_string->get_offsets(), vec_res); |
597 | 21.4k | } else if (c0_string && c1_const) { |
598 | 21.3k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
599 | 21.3k | *c1_const_chars, c1_const_size, vec_res); |
600 | 21.3k | } 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.3k | block.replace_by_position(result, std::move(c_res)); |
609 | 22.3k | return Status::OK(); |
610 | 22.3k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 20.7k | const IColumn* c1) const { | 547 | 20.7k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 20.7k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 20.7k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 20.7k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 20.7k | 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.7k | DCHECK(!(c0_const && c1_const)); | 556 | 20.7k | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 20.7k | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 20.7k | ColumnString::Offset c0_const_size = 0; | 559 | 20.7k | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 20.7k | 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.7k | if (c1_const) { | 575 | 20.2k | const ColumnString* c1_const_string = | 576 | 20.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 20.2k | if (c1_const_string) { | 579 | 20.2k | c1_const_chars = &c1_const_string->get_chars(); | 580 | 20.2k | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 18.4E | } else { | 582 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 18.4E | c1->get_name(), name); | 584 | 18.4E | } | 585 | 20.2k | } | 586 | | | 587 | 20.7k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 20.7k | auto c_res = ColumnUInt8::create(); | 590 | 20.7k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 20.7k | vec_res.resize(c0->size()); | 592 | | | 593 | 20.7k | if (c0_string && c1_string) { | 594 | 417 | StringImpl::string_vector_string_vector( | 595 | 417 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 417 | c1_string->get_offsets(), vec_res); | 597 | 20.3k | } else if (c0_string && c1_const) { | 598 | 20.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 20.2k | *c1_const_chars, c1_const_size, vec_res); | 600 | 20.2k | } 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.7k | block.replace_by_position(result, std::move(c_res)); | 609 | 20.7k | return Status::OK(); | 610 | 20.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 127 | const IColumn* c1) const { | 547 | 127 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 127 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 127 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 127 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 127 | 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 | 127 | DCHECK(!(c0_const && c1_const)); | 556 | 127 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 127 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 127 | ColumnString::Offset c0_const_size = 0; | 559 | 127 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 127 | 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 | 127 | if (c1_const) { | 575 | 116 | const ColumnString* c1_const_string = | 576 | 116 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 116 | if (c1_const_string) { | 579 | 116 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 116 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 116 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 116 | } | 586 | | | 587 | 127 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 127 | auto c_res = ColumnUInt8::create(); | 590 | 127 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 127 | vec_res.resize(c0->size()); | 592 | | | 593 | 127 | 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 | 117 | } else if (c0_string && c1_const) { | 598 | 117 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 117 | *c1_const_chars, c1_const_size, vec_res); | 600 | 117 | } 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 | 127 | block.replace_by_position(result, std::move(c_res)); | 609 | 127 | return Status::OK(); | 610 | 127 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 220 | const IColumn* c1) const { | 547 | 220 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 220 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 220 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 220 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 220 | 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 | 220 | DCHECK(!(c0_const && c1_const)); | 556 | 220 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 220 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 220 | ColumnString::Offset c0_const_size = 0; | 559 | 220 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 220 | 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 | 220 | if (c1_const) { | 575 | 218 | const ColumnString* c1_const_string = | 576 | 218 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 218 | if (c1_const_string) { | 579 | 218 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 218 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 218 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 218 | } | 586 | | | 587 | 220 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 220 | auto c_res = ColumnUInt8::create(); | 590 | 220 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 220 | vec_res.resize(c0->size()); | 592 | | | 593 | 220 | 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 | 218 | } else if (c0_string && c1_const) { | 598 | 218 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 218 | *c1_const_chars, c1_const_size, vec_res); | 600 | 218 | } 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 | 220 | block.replace_by_position(result, std::move(c_res)); | 609 | 220 | return Status::OK(); | 610 | 220 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 398 | const IColumn* c1) const { | 547 | 398 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 398 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 398 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 398 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 398 | 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 | 398 | DCHECK(!(c0_const && c1_const)); | 556 | 398 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 398 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 398 | ColumnString::Offset c0_const_size = 0; | 559 | 398 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 398 | 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 | 398 | if (c1_const) { | 575 | 306 | const ColumnString* c1_const_string = | 576 | 306 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 306 | if (c1_const_string) { | 579 | 306 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 306 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 306 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 306 | } | 586 | | | 587 | 398 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 398 | auto c_res = ColumnUInt8::create(); | 590 | 398 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 398 | vec_res.resize(c0->size()); | 592 | | | 593 | 398 | 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 | 362 | } else if (c0_string && c1_const) { | 598 | 306 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 306 | *c1_const_chars, c1_const_size, vec_res); | 600 | 306 | } 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 | 398 | block.replace_by_position(result, std::move(c_res)); | 609 | 398 | return Status::OK(); | 610 | 398 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 517 | const IColumn* c1) const { | 547 | 517 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 517 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 517 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 517 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 517 | 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 | 517 | DCHECK(!(c0_const && c1_const)); | 556 | 517 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 517 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 517 | ColumnString::Offset c0_const_size = 0; | 559 | 517 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 517 | 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 | 517 | if (c1_const) { | 575 | 125 | const ColumnString* c1_const_string = | 576 | 125 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 125 | if (c1_const_string) { | 579 | 125 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 125 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 125 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 125 | } | 586 | | | 587 | 517 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 517 | auto c_res = ColumnUInt8::create(); | 590 | 517 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 517 | vec_res.resize(c0->size()); | 592 | | | 593 | 517 | if (c0_string && c1_string) { | 594 | 386 | StringImpl::string_vector_string_vector( | 595 | 386 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 386 | c1_string->get_offsets(), vec_res); | 597 | 386 | } else if (c0_string && c1_const) { | 598 | 125 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 125 | *c1_const_chars, c1_const_size, vec_res); | 600 | 125 | } 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 | 517 | block.replace_by_position(result, std::move(c_res)); | 609 | 517 | return Status::OK(); | 610 | 517 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 321 | const IColumn* c1) const { | 547 | 321 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 321 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 321 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 321 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 321 | 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 | 321 | DCHECK(!(c0_const && c1_const)); | 556 | 321 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 321 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 321 | ColumnString::Offset c0_const_size = 0; | 559 | 321 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 321 | 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 | 321 | if (c1_const) { | 575 | 321 | const ColumnString* c1_const_string = | 576 | 321 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 321 | if (c1_const_string) { | 579 | 321 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 321 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 321 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 321 | } | 586 | | | 587 | 321 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 321 | auto c_res = ColumnUInt8::create(); | 590 | 321 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 321 | vec_res.resize(c0->size()); | 592 | | | 593 | 321 | 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 | 321 | } else if (c0_string && c1_const) { | 598 | 321 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 321 | *c1_const_chars, c1_const_size, vec_res); | 600 | 321 | } 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 | 321 | block.replace_by_position(result, std::move(c_res)); | 609 | 321 | return Status::OK(); | 610 | 321 | } |
|
611 | | |
612 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
613 | 194 | const IColumn* c1) const { |
614 | 194 | bool c0_const = is_column_const(*c0); |
615 | 194 | bool c1_const = is_column_const(*c1); |
616 | | |
617 | 194 | DCHECK(!(c0_const && c1_const)); |
618 | | |
619 | 194 | auto c_res = ColumnUInt8::create(); |
620 | 194 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
621 | 194 | vec_res.resize(c0->size()); |
622 | | |
623 | 194 | if (c0_const) { |
624 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
625 | 193 | } else if (c1_const) { |
626 | 171 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
627 | 171 | } else { |
628 | 22 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
629 | 22 | } |
630 | | |
631 | 194 | block.replace_by_position(result, std::move(c_res)); |
632 | 194 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 613 | 34 | const IColumn* c1) const { | 614 | 34 | bool c0_const = is_column_const(*c0); | 615 | 34 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 34 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 34 | auto c_res = ColumnUInt8::create(); | 620 | 34 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 34 | vec_res.resize(c0->size()); | 622 | | | 623 | 34 | if (c0_const) { | 624 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 33 | } else if (c1_const) { | 626 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 18 | } else { | 628 | 15 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 15 | } | 630 | | | 631 | 34 | block.replace_by_position(result, std::move(c_res)); | 632 | 34 | } |
_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 | 66 | const IColumn* c1) const { | 614 | 66 | bool c0_const = is_column_const(*c0); | 615 | 66 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 66 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 66 | auto c_res = ColumnUInt8::create(); | 620 | 66 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 66 | vec_res.resize(c0->size()); | 622 | | | 623 | 66 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 66 | } else if (c1_const) { | 626 | 65 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 65 | } else { | 628 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 1 | } | 630 | | | 631 | 66 | block.replace_by_position(result, std::move(c_res)); | 632 | 66 | } |
_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 | 64 | const IColumn* c1) const { | 614 | 64 | bool c0_const = is_column_const(*c0); | 615 | 64 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 64 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 64 | auto c_res = ColumnUInt8::create(); | 620 | 64 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 64 | vec_res.resize(c0->size()); | 622 | | | 623 | 64 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 64 | } else if (c1_const) { | 626 | 64 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 64 | } else { | 628 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 0 | } | 630 | | | 631 | 64 | block.replace_by_position(result, std::move(c_res)); | 632 | 64 | } |
|
633 | | |
634 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
635 | 194 | const ColumnWithTypeAndName& c1) const { |
636 | 194 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
637 | 194 | return Status::OK(); |
638 | 194 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 635 | 34 | const ColumnWithTypeAndName& c1) const { | 636 | 34 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 34 | return Status::OK(); | 638 | 34 | } |
_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 | 66 | const ColumnWithTypeAndName& c1) const { | 636 | 66 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 66 | return Status::OK(); | 638 | 66 | } |
_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 | 64 | const ColumnWithTypeAndName& c1) const { | 636 | 64 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 64 | return Status::OK(); | 638 | 64 | } |
|
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 | 220 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 61 | 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 | 81 | 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 | 299k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 269k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 1.24k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 729 | 6.76k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 8.50k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 729 | 3.86k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 9.69k | size_t get_number_of_arguments() const override { return 2; } |
|
730 | | |
731 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
732 | 3.35k | const VExprSPtrs& arguments) const override { |
733 | 3.35k | auto op = comparison_zonemap_detail::op_from_name(name); |
734 | 3.35k | DORIS_CHECK(op.has_value()); |
735 | 3.35k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
736 | 3.35k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 1.76k | const VExprSPtrs& arguments) const override { | 733 | 1.76k | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 1.76k | DORIS_CHECK(op.has_value()); | 735 | 1.76k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 1.76k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 152 | const VExprSPtrs& arguments) const override { | 733 | 152 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 152 | DORIS_CHECK(op.has_value()); | 735 | 152 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 152 | } |
_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 | 388 | const VExprSPtrs& arguments) const override { | 733 | 388 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 388 | DORIS_CHECK(op.has_value()); | 735 | 388 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 388 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 498 | const VExprSPtrs& arguments) const override { | 733 | 498 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 498 | DORIS_CHECK(op.has_value()); | 735 | 498 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 498 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 277 | const VExprSPtrs& arguments) const override { | 733 | 277 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 277 | DORIS_CHECK(op.has_value()); | 735 | 277 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 277 | } |
|
737 | | |
738 | 32.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
739 | 32.7k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
740 | 32.8k | comparison_zonemap_detail::can_evaluate(arguments); |
741 | 32.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 15.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 15.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 15.1k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 15.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 1.29k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 1.29k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 1.29k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 1.29k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 5.52k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 5.52k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 5.53k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 5.52k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 4.30k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 4.30k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 4.33k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 4.30k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 4.73k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 4.73k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 4.73k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 4.73k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 1.80k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 1.80k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 1.81k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 1.80k | } |
|
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 | 830 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
751 | 830 | auto op = comparison_zonemap_detail::op_from_name(name); |
752 | 830 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
753 | 830 | } _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 | 94 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 94 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 94 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 94 | } |
_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 | 338 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
763 | 338 | auto op = comparison_zonemap_detail::op_from_name(name); |
764 | 338 | return op == comparison_zonemap_detail::Op::EQ && |
765 | 338 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
766 | 338 | } _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 | 28 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 28 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 28 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 28 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 28 | } |
_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 | 298k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
770 | 298k | return std::make_shared<DataTypeUInt8>(); |
771 | 298k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 268k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 268k | return std::make_shared<DataTypeUInt8>(); | 771 | 268k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 1.23k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 1.23k | return std::make_shared<DataTypeUInt8>(); | 771 | 1.23k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 6.76k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 6.76k | return std::make_shared<DataTypeUInt8>(); | 771 | 6.76k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 8.50k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 8.50k | return std::make_shared<DataTypeUInt8>(); | 771 | 8.50k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 3.86k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 3.86k | return std::make_shared<DataTypeUInt8>(); | 771 | 3.86k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 9.69k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 9.69k | return std::make_shared<DataTypeUInt8>(); | 771 | 9.69k | } |
|
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.32k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
779 | 1.32k | DCHECK(arguments.size() == 1); |
780 | 1.32k | DCHECK(data_type_with_names.size() == 1); |
781 | 1.32k | DCHECK(iterators.size() == 1); |
782 | 1.32k | auto* iter = iterators[0]; |
783 | 1.32k | auto data_type_with_name = data_type_with_names[0]; |
784 | 1.32k | if (iter == nullptr) { |
785 | 0 | return Status::OK(); |
786 | 0 | } |
787 | 1.32k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
788 | 297 | return Status::OK(); |
789 | 297 | } |
790 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
791 | 1.03k | std::string_view name_view(name); |
792 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
793 | 710 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
794 | 710 | } else if (name_view == NameLess::name) { |
795 | 79 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
796 | 241 | } else if (name_view == NameLessOrEquals::name) { |
797 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
798 | 160 | } else if (name_view == NameGreater::name) { |
799 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
800 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
801 | 93 | 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.03k | if (segment_v2::is_range_query(query_type) && |
807 | 1.03k | 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 | 903 | Field param_value; |
812 | 903 | arguments[0].column->get(0, param_value); |
813 | 903 | if (param_value.is_null()) { |
814 | 2 | return Status::OK(); |
815 | 2 | } |
816 | 901 | segment_v2::InvertedIndexParam param; |
817 | 901 | param.column_name = data_type_with_name.first; |
818 | 901 | param.column_type = data_type_with_name.second; |
819 | 901 | param.query_value = param_value; |
820 | 901 | param.query_type = query_type; |
821 | 901 | param.num_rows = num_rows; |
822 | 901 | param.roaring = std::make_shared<roaring::Roaring>(); |
823 | 901 | param.analyzer_ctx = analyzer_ctx; |
824 | 901 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
825 | 751 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
826 | 751 | if (iter->has_null()) { |
827 | 746 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
828 | 746 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
829 | 746 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
830 | 746 | } |
831 | 751 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
832 | 751 | bitmap_result = result; |
833 | 751 | bitmap_result.mask_out_null(); |
834 | | |
835 | 751 | if (name_view == NameNotEquals::name) { |
836 | 59 | roaring::Roaring full_result; |
837 | 59 | full_result.addRange(0, num_rows); |
838 | 59 | bitmap_result.op_not(&full_result); |
839 | 59 | } |
840 | | |
841 | 751 | return Status::OK(); |
842 | 751 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 671 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 671 | DCHECK(arguments.size() == 1); | 780 | 671 | DCHECK(data_type_with_names.size() == 1); | 781 | 671 | DCHECK(iterators.size() == 1); | 782 | 671 | auto* iter = iterators[0]; | 783 | 671 | auto data_type_with_name = data_type_with_names[0]; | 784 | 671 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 671 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 30 | return Status::OK(); | 789 | 30 | } | 790 | 641 | segment_v2::InvertedIndexQueryType query_type; | 791 | 641 | std::string_view name_view(name); | 792 | 644 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 644 | 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 | 644 | if (segment_v2::is_range_query(query_type) && | 807 | 644 | 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 | 644 | Field param_value; | 812 | 644 | arguments[0].column->get(0, param_value); | 813 | 644 | if (param_value.is_null()) { | 814 | 2 | return Status::OK(); | 815 | 2 | } | 816 | 642 | segment_v2::InvertedIndexParam param; | 817 | 642 | param.column_name = data_type_with_name.first; | 818 | 642 | param.column_type = data_type_with_name.second; | 819 | 642 | param.query_value = param_value; | 820 | 642 | param.query_type = query_type; | 821 | 642 | param.num_rows = num_rows; | 822 | 642 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 642 | param.analyzer_ctx = analyzer_ctx; | 824 | 642 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 596 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 596 | if (iter->has_null()) { | 827 | 596 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 596 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 596 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 596 | } | 831 | 596 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 596 | bitmap_result = result; | 833 | 596 | bitmap_result.mask_out_null(); | 834 | | | 835 | 596 | 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 | 596 | return Status::OK(); | 842 | 596 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 71 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 71 | DCHECK(arguments.size() == 1); | 780 | 71 | DCHECK(data_type_with_names.size() == 1); | 781 | 71 | DCHECK(iterators.size() == 1); | 782 | 71 | auto* iter = iterators[0]; | 783 | 71 | auto data_type_with_name = data_type_with_names[0]; | 784 | 71 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 71 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 6 | return Status::OK(); | 789 | 6 | } | 790 | 65 | segment_v2::InvertedIndexQueryType query_type; | 791 | 65 | 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 | 61 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 61 | if (iter->has_null()) { | 827 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 58 | } | 831 | 61 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 61 | bitmap_result = result; | 833 | 61 | bitmap_result.mask_out_null(); | 834 | | | 835 | 61 | if (name_view == NameNotEquals::name) { | 836 | 59 | roaring::Roaring full_result; | 837 | 59 | full_result.addRange(0, num_rows); | 838 | 59 | bitmap_result.op_not(&full_result); | 839 | 59 | } | 840 | | | 841 | 61 | return Status::OK(); | 842 | 61 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 112 | DCHECK(arguments.size() == 1); | 780 | 112 | DCHECK(data_type_with_names.size() == 1); | 781 | 112 | DCHECK(iterators.size() == 1); | 782 | 112 | auto* iter = iterators[0]; | 783 | 112 | auto data_type_with_name = data_type_with_names[0]; | 784 | 112 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 39 | return Status::OK(); | 789 | 39 | } | 790 | 73 | segment_v2::InvertedIndexQueryType query_type; | 791 | 73 | 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 | 73 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 73 | } 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 | 73 | } 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 | 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 | 178 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 178 | DCHECK(arguments.size() == 1); | 780 | 178 | DCHECK(data_type_with_names.size() == 1); | 781 | 178 | DCHECK(iterators.size() == 1); | 782 | 178 | auto* iter = iterators[0]; | 783 | 178 | auto data_type_with_name = data_type_with_names[0]; | 784 | 178 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 178 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 86 | return Status::OK(); | 789 | 86 | } | 790 | 92 | segment_v2::InvertedIndexQueryType query_type; | 791 | 92 | std::string_view name_view(name); | 792 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 92 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 92 | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 92 | } else if (name_view == NameGreater::name) { | 799 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 93 | 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 | 93 | if (segment_v2::is_range_query(query_type) && | 807 | 93 | 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 | 46 | Field param_value; | 812 | 46 | arguments[0].column->get(0, param_value); | 813 | 46 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 46 | segment_v2::InvertedIndexParam param; | 817 | 46 | param.column_name = data_type_with_name.first; | 818 | 46 | param.column_type = data_type_with_name.second; | 819 | 46 | param.query_value = param_value; | 820 | 46 | param.query_type = query_type; | 821 | 46 | param.num_rows = num_rows; | 822 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 46 | param.analyzer_ctx = analyzer_ctx; | 824 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 6 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 6 | if (iter->has_null()) { | 827 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 5 | } | 831 | 6 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 6 | bitmap_result = result; | 833 | 6 | bitmap_result.mask_out_null(); | 834 | | | 835 | 6 | 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 | 6 | return Status::OK(); | 842 | 6 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 121 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 121 | DCHECK(arguments.size() == 1); | 780 | 121 | DCHECK(data_type_with_names.size() == 1); | 781 | 121 | DCHECK(iterators.size() == 1); | 782 | 121 | auto* iter = iterators[0]; | 783 | 121 | auto data_type_with_name = data_type_with_names[0]; | 784 | 121 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 121 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 42 | return Status::OK(); | 789 | 42 | } | 790 | 79 | segment_v2::InvertedIndexQueryType query_type; | 791 | 79 | std::string_view name_view(name); | 792 | 79 | 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 | 79 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 79 | } 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 | 79 | if (segment_v2::is_range_query(query_type) && | 807 | 79 | 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 | 61 | Field param_value; | 812 | 61 | arguments[0].column->get(0, param_value); | 813 | 61 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 61 | segment_v2::InvertedIndexParam param; | 817 | 61 | param.column_name = data_type_with_name.first; | 818 | 61 | param.column_type = data_type_with_name.second; | 819 | 61 | param.query_value = param_value; | 820 | 61 | param.query_type = query_type; | 821 | 61 | param.num_rows = num_rows; | 822 | 61 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 61 | param.analyzer_ctx = analyzer_ctx; | 824 | 61 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 42 | 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 | 42 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 42 | bitmap_result = result; | 833 | 42 | bitmap_result.mask_out_null(); | 834 | | | 835 | 42 | 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 | 42 | return Status::OK(); | 842 | 42 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 174 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 174 | DCHECK(arguments.size() == 1); | 780 | 174 | DCHECK(data_type_with_names.size() == 1); | 781 | 174 | DCHECK(iterators.size() == 1); | 782 | 174 | auto* iter = iterators[0]; | 783 | 174 | auto data_type_with_name = data_type_with_names[0]; | 784 | 174 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 174 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 94 | return Status::OK(); | 789 | 94 | } | 790 | 80 | segment_v2::InvertedIndexQueryType query_type; | 791 | 80 | 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 | 80 | } 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 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 9 | } | 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 | 147k | uint32_t result, size_t input_rows_count) const override { |
849 | 147k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
850 | 147k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
851 | | |
852 | 147k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
853 | 147k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
854 | 147k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
855 | 147k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
856 | | |
857 | 147k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
858 | 147k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
859 | | |
860 | 147k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ |
861 | 736k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ |
862 | 736k | 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 | 736k | if (left_type->get_primitive_type() == TYPE && \ |
867 | 736k | 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 | 147k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) |
873 | 294k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) |
874 | 294k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) |
875 | 294k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) |
876 | 294k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) |
877 | | |
878 | 147k | #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 | 147k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
884 | 147k | 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 | 264k | auto can_compare = [](PrimitiveType t) -> bool { |
907 | 264k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
908 | 264k | is_timestamp_ns_type(t); |
909 | 264k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 54.4k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 54.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 54.4k | is_timestamp_ns_type(t); | 909 | 54.4k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 6.47k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 6.47k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 6.47k | is_timestamp_ns_type(t); | 909 | 6.47k | }; |
_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 | 8.44k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 8.44k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 8.44k | is_timestamp_ns_type(t); | 909 | 8.44k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 21.0k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 21.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 21.0k | is_timestamp_ns_type(t); | 909 | 21.0k | }; |
_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 | 147k | if (can_compare(left_type->get_primitive_type()) && |
912 | 147k | 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 | 116k | 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 | 116k | } |
920 | | |
921 | 147k | auto compare_type = left_type->get_primitive_type(); |
922 | 147k | switch (compare_type) { |
923 | 243 | case TYPE_BOOLEAN: |
924 | 243 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
925 | 5.16k | case TYPE_DATEV2: |
926 | 5.16k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
927 | 863 | case TYPE_DATETIMEV2: |
928 | 863 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
929 | 896 | case TYPE_TIMESTAMP_NS: |
930 | 896 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
931 | 17 | case TYPE_TIMESTAMPTZ: |
932 | 17 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
933 | 10.2k | case TYPE_TINYINT: |
934 | 10.2k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
935 | 3.09k | case TYPE_SMALLINT: |
936 | 3.09k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
937 | 83.2k | case TYPE_INT: |
938 | 83.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
939 | 8.91k | case TYPE_BIGINT: |
940 | 8.91k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
941 | 711 | case TYPE_LARGEINT: |
942 | 711 | 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.88k | case TYPE_UUID: |
948 | 4.88k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
949 | 512 | case TYPE_FLOAT: |
950 | 512 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
951 | 2.66k | case TYPE_DOUBLE: |
952 | 2.66k | 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 | 276 | case TYPE_DECIMAL32: |
957 | 857 | case TYPE_DECIMAL64: |
958 | 3.10k | case TYPE_DECIMAL128I: |
959 | 3.17k | case TYPE_DECIMAL256: |
960 | 3.17k | return execute_decimal(block, result, col_with_type_and_name_left, |
961 | 3.17k | col_with_type_and_name_right); |
962 | 979 | case TYPE_CHAR: |
963 | 7.56k | case TYPE_VARCHAR: |
964 | 22.3k | case TYPE_STRING: |
965 | 22.3k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
966 | 194 | default: |
967 | 194 | return execute_generic(block, result, col_with_type_and_name_left, |
968 | 194 | col_with_type_and_name_right); |
969 | 147k | } |
970 | 0 | return Status::OK(); |
971 | 147k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 39.6k | uint32_t result, size_t input_rows_count) const override { | 849 | 39.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 39.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 39.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 39.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 39.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 39.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 39.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 39.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 39.6k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 39.6k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 39.6k | right_type->get_primitive_type() == TYPE) { \ | 863 | 39.6k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 39.6k | col_right_ptr, input_rows_count); \ | 865 | 39.6k | } \ | 866 | 39.6k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 39.6k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 39.6k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 39.6k | col_right_ptr, input_rows_count); \ | 870 | 39.6k | } | 871 | | | 872 | 39.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 79.2k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 79.2k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 79.1k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 79.1k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 39.5k | #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 | 39.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 39.5k | 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 | 39.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 39.5k | is_timestamp_ns_type(t); | 909 | 39.5k | }; | 910 | | | 911 | 39.5k | if (can_compare(left_type->get_primitive_type()) && | 912 | 39.5k | 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 | 14.8k | 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 | 14.8k | } | 920 | | | 921 | 39.5k | auto compare_type = left_type->get_primitive_type(); | 922 | 39.5k | switch (compare_type) { | 923 | 94 | case TYPE_BOOLEAN: | 924 | 94 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 544 | case TYPE_DATEV2: | 926 | 544 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 379 | case TYPE_DATETIMEV2: | 928 | 379 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 203 | case TYPE_TIMESTAMP_NS: | 930 | 203 | 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.08k | case TYPE_TINYINT: | 934 | 6.08k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 406 | case TYPE_SMALLINT: | 936 | 406 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 3.12k | case TYPE_INT: | 938 | 3.12k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 2.95k | case TYPE_BIGINT: | 940 | 2.95k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 92 | case TYPE_LARGEINT: | 942 | 92 | 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.81k | case TYPE_UUID: | 948 | 2.81k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 71 | case TYPE_FLOAT: | 950 | 71 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 875 | case TYPE_DOUBLE: | 952 | 875 | 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 | 99 | case TYPE_DECIMAL32: | 957 | 202 | case TYPE_DECIMAL64: | 958 | 1.09k | case TYPE_DECIMAL128I: | 959 | 1.11k | case TYPE_DECIMAL256: | 960 | 1.11k | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 1.11k | col_with_type_and_name_right); | 962 | 720 | case TYPE_CHAR: | 963 | 6.64k | case TYPE_VARCHAR: | 964 | 20.7k | case TYPE_STRING: | 965 | 20.7k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 34 | default: | 967 | 34 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 34 | col_with_type_and_name_right); | 969 | 39.5k | } | 970 | 0 | return Status::OK(); | 971 | 39.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 3.36k | uint32_t result, size_t input_rows_count) const override { | 849 | 3.36k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 3.36k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 3.36k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 3.36k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 3.36k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 3.36k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 3.36k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 3.36k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 3.36k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 3.36k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 3.36k | right_type->get_primitive_type() == TYPE) { \ | 863 | 3.36k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 3.36k | col_right_ptr, input_rows_count); \ | 865 | 3.36k | } \ | 866 | 3.36k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 3.36k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 3.36k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 3.36k | col_right_ptr, input_rows_count); \ | 870 | 3.36k | } | 871 | | | 872 | 3.36k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 6.73k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 6.73k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 6.73k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 6.73k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 3.36k | #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 | 3.36k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 3.36k | 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 | 3.36k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 3.36k | is_timestamp_ns_type(t); | 909 | 3.36k | }; | 910 | | | 911 | 3.36k | if (can_compare(left_type->get_primitive_type()) && | 912 | 3.36k | 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.10k | 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.10k | } | 920 | | | 921 | 3.36k | auto compare_type = left_type->get_primitive_type(); | 922 | 3.36k | 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.67k | case TYPE_INT: | 938 | 1.67k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 1.16k | case TYPE_BIGINT: | 940 | 1.16k | 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 | 46 | case TYPE_VARCHAR: | 964 | 127 | case TYPE_STRING: | 965 | 127 | 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 | 3.36k | } | 970 | 0 | return Status::OK(); | 971 | 3.36k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 78.3k | uint32_t result, size_t input_rows_count) const override { | 849 | 78.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 78.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 78.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 78.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 78.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 78.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 78.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 78.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 78.3k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 78.3k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 78.3k | right_type->get_primitive_type() == TYPE) { \ | 863 | 78.3k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 78.3k | col_right_ptr, input_rows_count); \ | 865 | 78.3k | } \ | 866 | 78.3k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 78.3k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 78.3k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 78.3k | col_right_ptr, input_rows_count); \ | 870 | 78.3k | } | 871 | | | 872 | 78.3k | 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.3k | #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.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 78.3k | 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.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 78.3k | is_timestamp_ns_type(t); | 909 | 78.3k | }; | 910 | | | 911 | 78.3k | if (can_compare(left_type->get_primitive_type()) && | 912 | 78.3k | 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.3k | auto compare_type = left_type->get_primitive_type(); | 922 | 78.3k | 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.26k | case TYPE_DATEV2: | 926 | 1.26k | 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.62k | case TYPE_TINYINT: | 934 | 1.62k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 2.36k | case TYPE_SMALLINT: | 936 | 2.36k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 67.9k | case TYPE_INT: | 938 | 67.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 2.47k | case TYPE_BIGINT: | 940 | 2.47k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 243 | case TYPE_LARGEINT: | 942 | 243 | 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 | 219 | case TYPE_FLOAT: | 950 | 219 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 543 | case TYPE_DOUBLE: | 952 | 543 | 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 | 74 | case TYPE_DECIMAL64: | 958 | 765 | case TYPE_DECIMAL128I: | 959 | 767 | case TYPE_DECIMAL256: | 960 | 767 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 767 | col_with_type_and_name_right); | 962 | 14 | case TYPE_CHAR: | 963 | 113 | case TYPE_VARCHAR: | 964 | 220 | case TYPE_STRING: | 965 | 220 | 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.3k | } | 970 | 0 | return Status::OK(); | 971 | 78.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 4.79k | uint32_t result, size_t input_rows_count) const override { | 849 | 4.79k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 4.79k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 4.79k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 4.79k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 4.79k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 4.79k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 4.79k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 4.79k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 4.79k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 4.79k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 4.79k | right_type->get_primitive_type() == TYPE) { \ | 863 | 4.79k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 4.79k | col_right_ptr, input_rows_count); \ | 865 | 4.79k | } \ | 866 | 4.79k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 4.79k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 4.79k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 4.79k | col_right_ptr, input_rows_count); \ | 870 | 4.79k | } | 871 | | | 872 | 4.79k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 9.58k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 9.58k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 9.58k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 9.57k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 4.78k | #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.78k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 4.79k | 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.78k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 4.78k | is_timestamp_ns_type(t); | 909 | 4.78k | }; | 910 | | | 911 | 4.78k | if (can_compare(left_type->get_primitive_type()) && | 912 | 4.78k | 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.65k | 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.65k | } | 920 | | | 921 | 4.78k | auto compare_type = left_type->get_primitive_type(); | 922 | 4.78k | switch (compare_type) { | 923 | 33 | case TYPE_BOOLEAN: | 924 | 33 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 488 | case TYPE_DATEV2: | 926 | 488 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 121 | case TYPE_DATETIMEV2: | 928 | 121 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 405 | case TYPE_TIMESTAMP_NS: | 930 | 405 | 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 | 55 | case TYPE_TINYINT: | 934 | 55 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 65 | case TYPE_SMALLINT: | 936 | 65 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 1.51k | case TYPE_INT: | 938 | 1.51k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 732 | case TYPE_BIGINT: | 940 | 732 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 23 | case TYPE_LARGEINT: | 942 | 23 | 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 | 583 | case TYPE_UUID: | 948 | 583 | 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 | 124 | case TYPE_DOUBLE: | 952 | 124 | 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 | 1 | case TYPE_DECIMAL32: | 957 | 71 | case TYPE_DECIMAL64: | 958 | 145 | case TYPE_DECIMAL128I: | 959 | 156 | case TYPE_DECIMAL256: | 960 | 156 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 156 | col_with_type_and_name_right); | 962 | 35 | case TYPE_CHAR: | 963 | 233 | case TYPE_VARCHAR: | 964 | 398 | case TYPE_STRING: | 965 | 398 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 66 | default: | 967 | 66 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 66 | col_with_type_and_name_right); | 969 | 4.78k | } | 970 | 0 | return Status::OK(); | 971 | 4.78k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 11.4k | uint32_t result, size_t input_rows_count) const override { | 849 | 11.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 11.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 11.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 11.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 11.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 11.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 11.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 11.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 11.4k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 11.4k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 11.4k | right_type->get_primitive_type() == TYPE) { \ | 863 | 11.4k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 11.4k | col_right_ptr, input_rows_count); \ | 865 | 11.4k | } \ | 866 | 11.4k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 11.4k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 11.4k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 11.4k | col_right_ptr, input_rows_count); \ | 870 | 11.4k | } | 871 | | | 872 | 11.4k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 22.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 22.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 22.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 22.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 11.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 | 11.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 11.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 | | 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.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 11.4k | is_timestamp_ns_type(t); | 909 | 11.4k | }; | 910 | | | 911 | 11.4k | if (can_compare(left_type->get_primitive_type()) && | 912 | 11.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 | 9.62k | 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.62k | } | 920 | | | 921 | 11.4k | auto compare_type = left_type->get_primitive_type(); | 922 | 11.4k | 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.23k | case TYPE_DATEV2: | 926 | 2.23k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 299 | case TYPE_DATETIMEV2: | 928 | 299 | 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.34k | case TYPE_TINYINT: | 934 | 2.34k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 170 | case TYPE_SMALLINT: | 936 | 170 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 2.00k | case TYPE_INT: | 938 | 2.00k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 923 | case TYPE_BIGINT: | 940 | 923 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 307 | case TYPE_LARGEINT: | 942 | 307 | 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 | 130 | case TYPE_FLOAT: | 950 | 130 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 940 | case TYPE_DOUBLE: | 952 | 940 | 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 | 162 | case TYPE_DECIMAL32: | 957 | 349 | case TYPE_DECIMAL64: | 958 | 829 | case TYPE_DECIMAL128I: | 959 | 830 | case TYPE_DECIMAL256: | 960 | 830 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 830 | col_with_type_and_name_right); | 962 | 169 | case TYPE_CHAR: | 963 | 370 | case TYPE_VARCHAR: | 964 | 517 | case TYPE_STRING: | 965 | 517 | 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.4k | } | 970 | 0 | return Status::OK(); | 971 | 11.4k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 9.70k | uint32_t result, size_t input_rows_count) const override { | 849 | 9.70k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 9.70k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 9.70k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 9.70k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 9.70k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 9.70k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 9.70k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 9.70k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 9.70k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 9.70k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 9.70k | right_type->get_primitive_type() == TYPE) { \ | 863 | 9.70k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 9.70k | col_right_ptr, input_rows_count); \ | 865 | 9.70k | } \ | 866 | 9.70k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 9.70k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 9.70k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 9.70k | col_right_ptr, input_rows_count); \ | 870 | 9.70k | } | 871 | | | 872 | 9.70k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 19.4k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 19.4k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 19.4k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 19.4k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 9.70k | #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.70k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 9.70k | 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.70k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 9.70k | is_timestamp_ns_type(t); | 909 | 9.70k | }; | 910 | | | 911 | 9.70k | if (can_compare(left_type->get_primitive_type()) && | 912 | 9.70k | 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.78k | 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.78k | } | 920 | | | 921 | 9.70k | auto compare_type = left_type->get_primitive_type(); | 922 | 9.70k | switch (compare_type) { | 923 | 31 | case TYPE_BOOLEAN: | 924 | 31 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 560 | case TYPE_DATEV2: | 926 | 560 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 61 | case TYPE_DATETIMEV2: | 928 | 61 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 63 | case TYPE_TIMESTAMP_NS: | 930 | 63 | 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 | 62 | case TYPE_TINYINT: | 934 | 62 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 81 | case TYPE_SMALLINT: | 936 | 81 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 6.99k | case TYPE_INT: | 938 | 6.99k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 666 | case TYPE_BIGINT: | 940 | 666 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 46 | case TYPE_LARGEINT: | 942 | 46 | 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 | 423 | case TYPE_UUID: | 948 | 423 | 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 | 122 | case TYPE_DOUBLE: | 952 | 122 | 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 | 6 | case TYPE_DECIMAL32: | 957 | 94 | case TYPE_DECIMAL64: | 958 | 175 | case TYPE_DECIMAL128I: | 959 | 181 | case TYPE_DECIMAL256: | 960 | 181 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 181 | col_with_type_and_name_right); | 962 | 40 | case TYPE_CHAR: | 963 | 160 | case TYPE_VARCHAR: | 964 | 321 | case TYPE_STRING: | 965 | 321 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 64 | default: | 967 | 64 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 64 | col_with_type_and_name_right); | 969 | 9.70k | } | 970 | 0 | return Status::OK(); | 971 | 9.70k | } |
|
972 | | }; |
973 | | |
974 | | } // namespace doris |