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.7k | PaddedPODArray<UInt8>& c) { |
74 | 12.7k | size_t size = a.size(); |
75 | 12.7k | const A* __restrict a_pos = a.data(); |
76 | 12.7k | const B* __restrict b_pos = b.data(); |
77 | 12.7k | UInt8* __restrict c_pos = c.data(); |
78 | 12.7k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 7.57M | while (a_pos < a_end) { |
81 | 7.56M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 7.56M | ++a_pos; |
83 | 7.56M | ++b_pos; |
84 | 7.56M | ++c_pos; |
85 | 7.56M | } |
86 | 12.7k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 68 | PaddedPODArray<UInt8>& c) { | 74 | 68 | size_t size = a.size(); | 75 | 68 | const A* __restrict a_pos = a.data(); | 76 | 68 | const B* __restrict b_pos = b.data(); | 77 | 68 | UInt8* __restrict c_pos = c.data(); | 78 | 68 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 140 | while (a_pos < a_end) { | 81 | 72 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 72 | ++a_pos; | 83 | 72 | ++b_pos; | 84 | 72 | ++c_pos; | 85 | 72 | } | 86 | 68 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 243 | PaddedPODArray<UInt8>& c) { | 74 | 243 | size_t size = a.size(); | 75 | 243 | const A* __restrict a_pos = a.data(); | 76 | 243 | const B* __restrict b_pos = b.data(); | 77 | 243 | UInt8* __restrict c_pos = c.data(); | 78 | 243 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.42k | while (a_pos < a_end) { | 81 | 1.18k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.18k | ++a_pos; | 83 | 1.18k | ++b_pos; | 84 | 1.18k | ++c_pos; | 85 | 1.18k | } | 86 | 243 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 270 | PaddedPODArray<UInt8>& c) { | 74 | 270 | size_t size = a.size(); | 75 | 270 | const A* __restrict a_pos = a.data(); | 76 | 270 | const B* __restrict b_pos = b.data(); | 77 | 270 | UInt8* __restrict c_pos = c.data(); | 78 | 270 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 562 | while (a_pos < a_end) { | 81 | 292 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 292 | ++a_pos; | 83 | 292 | ++b_pos; | 84 | 292 | ++c_pos; | 85 | 292 | } | 86 | 270 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 133 | PaddedPODArray<UInt8>& c) { | 74 | 133 | size_t size = a.size(); | 75 | 133 | const A* __restrict a_pos = a.data(); | 76 | 133 | const B* __restrict b_pos = b.data(); | 77 | 133 | UInt8* __restrict c_pos = c.data(); | 78 | 133 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 325 | while (a_pos < a_end) { | 81 | 192 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 192 | ++a_pos; | 83 | 192 | ++b_pos; | 84 | 192 | ++c_pos; | 85 | 192 | } | 86 | 133 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 3 | PaddedPODArray<UInt8>& c) { | 74 | 3 | size_t size = a.size(); | 75 | 3 | const A* __restrict a_pos = a.data(); | 76 | 3 | const B* __restrict b_pos = b.data(); | 77 | 3 | UInt8* __restrict c_pos = c.data(); | 78 | 3 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 13 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_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 | 581 | while (a_pos < a_end) { | 81 | 361 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 361 | ++a_pos; | 83 | 361 | ++b_pos; | 84 | 361 | ++c_pos; | 85 | 361 | } | 86 | 220 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_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 | 234 | while (a_pos < a_end) { | 81 | 117 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 117 | ++a_pos; | 83 | 117 | ++b_pos; | 84 | 117 | ++c_pos; | 85 | 117 | } | 86 | 117 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 999 | PaddedPODArray<UInt8>& c) { | 74 | 999 | size_t size = a.size(); | 75 | 999 | const A* __restrict a_pos = a.data(); | 76 | 999 | const B* __restrict b_pos = b.data(); | 77 | 999 | UInt8* __restrict c_pos = c.data(); | 78 | 999 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 3.25k | while (a_pos < a_end) { | 81 | 2.25k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.25k | ++a_pos; | 83 | 2.25k | ++b_pos; | 84 | 2.25k | ++c_pos; | 85 | 2.25k | } | 86 | 999 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 186 | PaddedPODArray<UInt8>& c) { | 74 | 186 | size_t size = a.size(); | 75 | 186 | const A* __restrict a_pos = a.data(); | 76 | 186 | const B* __restrict b_pos = b.data(); | 77 | 186 | UInt8* __restrict c_pos = c.data(); | 78 | 186 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.48k | while (a_pos < a_end) { | 81 | 1.29k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.29k | ++a_pos; | 83 | 1.29k | ++b_pos; | 84 | 1.29k | ++c_pos; | 85 | 1.29k | } | 86 | 186 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 74 | PaddedPODArray<UInt8>& c) { | 74 | 74 | size_t size = a.size(); | 75 | 74 | const A* __restrict a_pos = a.data(); | 76 | 74 | const B* __restrict b_pos = b.data(); | 77 | 74 | UInt8* __restrict c_pos = c.data(); | 78 | 74 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 148 | while (a_pos < a_end) { | 81 | 74 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 74 | ++a_pos; | 83 | 74 | ++b_pos; | 84 | 74 | ++c_pos; | 85 | 74 | } | 86 | 74 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_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_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 46 | while (a_pos < a_end) { | 81 | 23 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 23 | ++a_pos; | 83 | 23 | ++b_pos; | 84 | 23 | ++c_pos; | 85 | 23 | } | 86 | 23 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 776 | PaddedPODArray<UInt8>& c) { | 74 | 776 | size_t size = a.size(); | 75 | 776 | const A* __restrict a_pos = a.data(); | 76 | 776 | const B* __restrict b_pos = b.data(); | 77 | 776 | UInt8* __restrict c_pos = c.data(); | 78 | 776 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 38.4k | while (a_pos < a_end) { | 81 | 37.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 37.6k | ++a_pos; | 83 | 37.6k | ++b_pos; | 84 | 37.6k | ++c_pos; | 85 | 37.6k | } | 86 | 776 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 95 | PaddedPODArray<UInt8>& c) { | 74 | 95 | size_t size = a.size(); | 75 | 95 | const A* __restrict a_pos = a.data(); | 76 | 95 | const B* __restrict b_pos = b.data(); | 77 | 95 | UInt8* __restrict c_pos = c.data(); | 78 | 95 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 209 | while (a_pos < a_end) { | 81 | 114 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 114 | ++a_pos; | 83 | 114 | ++b_pos; | 84 | 114 | ++c_pos; | 85 | 114 | } | 86 | 95 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 109 | PaddedPODArray<UInt8>& c) { | 74 | 109 | size_t size = a.size(); | 75 | 109 | const A* __restrict a_pos = a.data(); | 76 | 109 | const B* __restrict b_pos = b.data(); | 77 | 109 | UInt8* __restrict c_pos = c.data(); | 78 | 109 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 284 | while (a_pos < a_end) { | 81 | 175 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 175 | ++a_pos; | 83 | 175 | ++b_pos; | 84 | 175 | ++c_pos; | 85 | 175 | } | 86 | 109 | } |
_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.65k | PaddedPODArray<UInt8>& c) { | 74 | 1.65k | size_t size = a.size(); | 75 | 1.65k | const A* __restrict a_pos = a.data(); | 76 | 1.65k | const B* __restrict b_pos = b.data(); | 77 | 1.65k | UInt8* __restrict c_pos = c.data(); | 78 | 1.65k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 297k | while (a_pos < a_end) { | 81 | 295k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 295k | ++a_pos; | 83 | 295k | ++b_pos; | 84 | 295k | ++c_pos; | 85 | 295k | } | 86 | 1.65k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 365 | PaddedPODArray<UInt8>& c) { | 74 | 365 | size_t size = a.size(); | 75 | 365 | const A* __restrict a_pos = a.data(); | 76 | 365 | const B* __restrict b_pos = b.data(); | 77 | 365 | UInt8* __restrict c_pos = c.data(); | 78 | 365 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 7.02k | while (a_pos < a_end) { | 81 | 6.66k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6.66k | ++a_pos; | 83 | 6.66k | ++b_pos; | 84 | 6.66k | ++c_pos; | 85 | 6.66k | } | 86 | 365 | } |
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.24k | PaddedPODArray<UInt8>& c) { | 74 | 1.24k | size_t size = a.size(); | 75 | 1.24k | const A* __restrict a_pos = a.data(); | 76 | 1.24k | const B* __restrict b_pos = b.data(); | 77 | 1.24k | UInt8* __restrict c_pos = c.data(); | 78 | 1.24k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 3.71M | while (a_pos < a_end) { | 81 | 3.70M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 3.70M | ++a_pos; | 83 | 3.70M | ++b_pos; | 84 | 3.70M | ++c_pos; | 85 | 3.70M | } | 86 | 1.24k | } |
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 | 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 | 11 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 67 | PaddedPODArray<UInt8>& c) { | 74 | 67 | size_t size = a.size(); | 75 | 67 | const A* __restrict a_pos = a.data(); | 76 | 67 | const B* __restrict b_pos = b.data(); | 77 | 67 | UInt8* __restrict c_pos = c.data(); | 78 | 67 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 376 | while (a_pos < a_end) { | 81 | 309 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 309 | ++a_pos; | 83 | 309 | ++b_pos; | 84 | 309 | ++c_pos; | 85 | 309 | } | 86 | 67 | } |
_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 | 390 | while (a_pos < a_end) { | 81 | 261 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 261 | ++a_pos; | 83 | 261 | ++b_pos; | 84 | 261 | ++c_pos; | 85 | 261 | } | 86 | 129 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 59 | PaddedPODArray<UInt8>& c) { | 74 | 59 | size_t size = a.size(); | 75 | 59 | const A* __restrict a_pos = a.data(); | 76 | 59 | const B* __restrict b_pos = b.data(); | 77 | 59 | UInt8* __restrict c_pos = c.data(); | 78 | 59 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 358 | while (a_pos < a_end) { | 81 | 299 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 299 | ++a_pos; | 83 | 299 | ++b_pos; | 84 | 299 | ++c_pos; | 85 | 299 | } | 86 | 59 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 178 | PaddedPODArray<UInt8>& c) { | 74 | 178 | size_t size = a.size(); | 75 | 178 | const A* __restrict a_pos = a.data(); | 76 | 178 | const B* __restrict b_pos = b.data(); | 77 | 178 | UInt8* __restrict c_pos = c.data(); | 78 | 178 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 800k | while (a_pos < a_end) { | 81 | 800k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 800k | ++a_pos; | 83 | 800k | ++b_pos; | 84 | 800k | ++c_pos; | 85 | 800k | } | 86 | 178 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 21 | PaddedPODArray<UInt8>& c) { | 74 | 21 | size_t size = a.size(); | 75 | 21 | const A* __restrict a_pos = a.data(); | 76 | 21 | const B* __restrict b_pos = b.data(); | 77 | 21 | UInt8* __restrict c_pos = c.data(); | 78 | 21 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 61 | while (a_pos < a_end) { | 81 | 40 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 40 | ++a_pos; | 83 | 40 | ++b_pos; | 84 | 40 | ++c_pos; | 85 | 40 | } | 86 | 21 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 29 | PaddedPODArray<UInt8>& c) { | 74 | 29 | size_t size = a.size(); | 75 | 29 | const A* __restrict a_pos = a.data(); | 76 | 29 | const B* __restrict b_pos = b.data(); | 77 | 29 | UInt8* __restrict c_pos = c.data(); | 78 | 29 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 100 | 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 | 29 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 6 | PaddedPODArray<UInt8>& c) { | 74 | 6 | size_t size = a.size(); | 75 | 6 | const A* __restrict a_pos = a.data(); | 76 | 6 | const B* __restrict b_pos = b.data(); | 77 | 6 | UInt8* __restrict c_pos = c.data(); | 78 | 6 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 70 | while (a_pos < a_end) { | 81 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 64 | ++a_pos; | 83 | 64 | ++b_pos; | 84 | 64 | ++c_pos; | 85 | 64 | } | 86 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 359 | PaddedPODArray<UInt8>& c) { | 74 | 359 | size_t size = a.size(); | 75 | 359 | const A* __restrict a_pos = a.data(); | 76 | 359 | const B* __restrict b_pos = b.data(); | 77 | 359 | UInt8* __restrict c_pos = c.data(); | 78 | 359 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.45k | while (a_pos < a_end) { | 81 | 1.09k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.09k | ++a_pos; | 83 | 1.09k | ++b_pos; | 84 | 1.09k | ++c_pos; | 85 | 1.09k | } | 86 | 359 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 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 | 11 | 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 | 2 | } |
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 | 63 | 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 | 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 | 85 | 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 | 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 | 86 | PaddedPODArray<UInt8>& c) { | 74 | 86 | size_t size = a.size(); | 75 | 86 | const A* __restrict a_pos = a.data(); | 76 | 86 | const B* __restrict b_pos = b.data(); | 77 | 86 | UInt8* __restrict c_pos = c.data(); | 78 | 86 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 346 | while (a_pos < a_end) { | 81 | 260 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 260 | ++a_pos; | 83 | 260 | ++b_pos; | 84 | 260 | ++c_pos; | 85 | 260 | } | 86 | 86 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.68k | PaddedPODArray<UInt8>& c) { | 74 | 1.68k | size_t size = a.size(); | 75 | 1.68k | const A* __restrict a_pos = a.data(); | 76 | 1.68k | const B* __restrict b_pos = b.data(); | 77 | 1.68k | UInt8* __restrict c_pos = c.data(); | 78 | 1.68k | 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.68k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 239 | PaddedPODArray<UInt8>& c) { | 74 | 239 | size_t size = a.size(); | 75 | 239 | const A* __restrict a_pos = a.data(); | 76 | 239 | const B* __restrict b_pos = b.data(); | 77 | 239 | UInt8* __restrict c_pos = c.data(); | 78 | 239 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 826 | while (a_pos < a_end) { | 81 | 587 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 587 | ++a_pos; | 83 | 587 | ++b_pos; | 84 | 587 | ++c_pos; | 85 | 587 | } | 86 | 239 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 227 | while (a_pos < a_end) { | 81 | 119 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 119 | ++a_pos; | 83 | 119 | ++b_pos; | 84 | 119 | ++c_pos; | 85 | 119 | } | 86 | 108 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_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 | 11 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 213 | PaddedPODArray<UInt8>& c) { | 74 | 213 | size_t size = a.size(); | 75 | 213 | const A* __restrict a_pos = a.data(); | 76 | 213 | const B* __restrict b_pos = b.data(); | 77 | 213 | UInt8* __restrict c_pos = c.data(); | 78 | 213 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 600 | while (a_pos < a_end) { | 81 | 387 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 387 | ++a_pos; | 83 | 387 | ++b_pos; | 84 | 387 | ++c_pos; | 85 | 387 | } | 86 | 213 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 158 | PaddedPODArray<UInt8>& c) { | 74 | 158 | size_t size = a.size(); | 75 | 158 | const A* __restrict a_pos = a.data(); | 76 | 158 | const B* __restrict b_pos = b.data(); | 77 | 158 | UInt8* __restrict c_pos = c.data(); | 78 | 158 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 491 | while (a_pos < a_end) { | 81 | 333 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 333 | ++a_pos; | 83 | 333 | ++b_pos; | 84 | 333 | ++c_pos; | 85 | 333 | } | 86 | 158 | } |
_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.60k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.60k | ++a_pos; | 83 | 1.60k | ++b_pos; | 84 | 1.60k | ++c_pos; | 85 | 1.60k | } | 86 | 878 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 261 | PaddedPODArray<UInt8>& c) { | 74 | 261 | size_t size = a.size(); | 75 | 261 | const A* __restrict a_pos = a.data(); | 76 | 261 | const B* __restrict b_pos = b.data(); | 77 | 261 | UInt8* __restrict c_pos = c.data(); | 78 | 261 | 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 | 261 | } |
_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 | 131 | PaddedPODArray<UInt8>& c) { | 74 | 131 | size_t size = a.size(); | 75 | 131 | const A* __restrict a_pos = a.data(); | 76 | 131 | const B* __restrict b_pos = b.data(); | 77 | 131 | UInt8* __restrict c_pos = c.data(); | 78 | 131 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 455 | while (a_pos < a_end) { | 81 | 324 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 324 | ++a_pos; | 83 | 324 | ++b_pos; | 84 | 324 | ++c_pos; | 85 | 324 | } | 86 | 131 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 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 | 461 | 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 | 130 | } |
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 | 422 | PaddedPODArray<UInt8>& c) { | 74 | 422 | size_t size = a.size(); | 75 | 422 | const A* __restrict a_pos = a.data(); | 76 | 422 | const B* __restrict b_pos = b.data(); | 77 | 422 | UInt8* __restrict c_pos = c.data(); | 78 | 422 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.07k | while (a_pos < a_end) { | 81 | 5.65k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.65k | ++a_pos; | 83 | 5.65k | ++b_pos; | 84 | 5.65k | ++c_pos; | 85 | 5.65k | } | 86 | 422 | } |
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 | 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 | 11 | 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 | 2 | } |
_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 | 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 | 74 | while (a_pos < a_end) { | 81 | 49 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 49 | ++a_pos; | 83 | 49 | ++b_pos; | 84 | 49 | ++c_pos; | 85 | 49 | } | 86 | 25 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_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 | 75 | while (a_pos < a_end) { | 81 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 42 | ++a_pos; | 83 | 42 | ++b_pos; | 84 | 42 | ++c_pos; | 85 | 42 | } | 86 | 33 | } |
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 | 53.7k | PaddedPODArray<UInt8>& c) { |
90 | 53.7k | size_t size = a.size(); |
91 | 53.7k | const A* __restrict a_pos = a.data(); |
92 | 53.7k | UInt8* __restrict c_pos = c.data(); |
93 | 53.7k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 34.1M | while (a_pos < a_end) { |
96 | 34.1M | *c_pos = Op::apply(*a_pos, b); |
97 | 34.1M | ++a_pos; |
98 | 34.1M | ++c_pos; |
99 | 34.1M | } |
100 | 53.7k | } _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 | 184 | while (a_pos < a_end) { | 96 | 154 | *c_pos = Op::apply(*a_pos, b); | 97 | 154 | ++a_pos; | 98 | 154 | ++c_pos; | 99 | 154 | } | 100 | 30 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 204k | while (a_pos < a_end) { | 96 | 204k | *c_pos = Op::apply(*a_pos, b); | 97 | 204k | ++a_pos; | 98 | 204k | ++c_pos; | 99 | 204k | } | 100 | 507 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 183 | PaddedPODArray<UInt8>& c) { | 90 | 183 | size_t size = a.size(); | 91 | 183 | const A* __restrict a_pos = a.data(); | 92 | 183 | UInt8* __restrict c_pos = c.data(); | 93 | 183 | 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 | 183 | } |
_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.89k | PaddedPODArray<UInt8>& c) { | 90 | 5.89k | size_t size = a.size(); | 91 | 5.89k | const A* __restrict a_pos = a.data(); | 92 | 5.89k | UInt8* __restrict c_pos = c.data(); | 93 | 5.89k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.10M | while (a_pos < a_end) { | 96 | 9.09M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.09M | ++a_pos; | 98 | 9.09M | ++c_pos; | 99 | 9.09M | } | 100 | 5.89k | } |
_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.22k | PaddedPODArray<UInt8>& c) { | 90 | 2.22k | size_t size = a.size(); | 91 | 2.22k | const A* __restrict a_pos = a.data(); | 92 | 2.22k | UInt8* __restrict c_pos = c.data(); | 93 | 2.22k | 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.22k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 3.85k | PaddedPODArray<UInt8>& c) { | 90 | 3.85k | size_t size = a.size(); | 91 | 3.85k | const A* __restrict a_pos = a.data(); | 92 | 3.85k | UInt8* __restrict c_pos = c.data(); | 93 | 3.85k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.78M | while (a_pos < a_end) { | 96 | 1.78M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.78M | ++a_pos; | 98 | 1.78M | ++c_pos; | 99 | 1.78M | } | 100 | 3.85k | } |
_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 | 537 | PaddedPODArray<UInt8>& c) { | 90 | 537 | size_t size = a.size(); | 91 | 537 | const A* __restrict a_pos = a.data(); | 92 | 537 | UInt8* __restrict c_pos = c.data(); | 93 | 537 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 711k | while (a_pos < a_end) { | 96 | 710k | *c_pos = Op::apply(*a_pos, b); | 97 | 710k | ++a_pos; | 98 | 710k | ++c_pos; | 99 | 710k | } | 100 | 537 | } |
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 | 224 | PaddedPODArray<UInt8>& c) { | 90 | 224 | size_t size = a.size(); | 91 | 224 | const A* __restrict a_pos = a.data(); | 92 | 224 | UInt8* __restrict c_pos = c.data(); | 93 | 224 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.93k | 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 | 224 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 452 | PaddedPODArray<UInt8>& c) { | 90 | 452 | size_t size = a.size(); | 91 | 452 | const A* __restrict a_pos = a.data(); | 92 | 452 | UInt8* __restrict c_pos = c.data(); | 93 | 452 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.63k | 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 | 452 | } |
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 | 364 | PaddedPODArray<UInt8>& c) { | 90 | 364 | size_t size = a.size(); | 91 | 364 | const A* __restrict a_pos = a.data(); | 92 | 364 | UInt8* __restrict c_pos = c.data(); | 93 | 364 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.34M | while (a_pos < a_end) { | 96 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.34M | ++a_pos; | 98 | 1.34M | ++c_pos; | 99 | 1.34M | } | 100 | 364 | } |
_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.59k | PaddedPODArray<UInt8>& c) { | 90 | 1.59k | size_t size = a.size(); | 91 | 1.59k | const A* __restrict a_pos = a.data(); | 92 | 1.59k | UInt8* __restrict c_pos = c.data(); | 93 | 1.59k | 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.59k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.17k | PaddedPODArray<UInt8>& c) { | 90 | 2.17k | size_t size = a.size(); | 91 | 2.17k | const A* __restrict a_pos = a.data(); | 92 | 2.17k | UInt8* __restrict c_pos = c.data(); | 93 | 2.17k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.96k | while (a_pos < a_end) { | 96 | 3.78k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.78k | ++a_pos; | 98 | 3.78k | ++c_pos; | 99 | 3.78k | } | 100 | 2.17k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.00k | PaddedPODArray<UInt8>& c) { | 90 | 2.00k | size_t size = a.size(); | 91 | 2.00k | const A* __restrict a_pos = a.data(); | 92 | 2.00k | UInt8* __restrict c_pos = c.data(); | 93 | 2.00k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.36k | while (a_pos < a_end) { | 96 | 5.35k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.35k | ++a_pos; | 98 | 5.35k | ++c_pos; | 99 | 5.35k | } | 100 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 254 | PaddedPODArray<UInt8>& c) { | 90 | 254 | size_t size = a.size(); | 91 | 254 | const A* __restrict a_pos = a.data(); | 92 | 254 | UInt8* __restrict c_pos = c.data(); | 93 | 254 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.19k | while (a_pos < a_end) { | 96 | 938 | *c_pos = Op::apply(*a_pos, b); | 97 | 938 | ++a_pos; | 98 | 938 | ++c_pos; | 99 | 938 | } | 100 | 254 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10.4k | PaddedPODArray<UInt8>& c) { | 90 | 10.4k | size_t size = a.size(); | 91 | 10.4k | const A* __restrict a_pos = a.data(); | 92 | 10.4k | UInt8* __restrict c_pos = c.data(); | 93 | 10.4k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.27M | while (a_pos < a_end) { | 96 | 5.26M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.26M | ++a_pos; | 98 | 5.26M | ++c_pos; | 99 | 5.26M | } | 100 | 10.4k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4.25k | PaddedPODArray<UInt8>& c) { | 90 | 4.25k | size_t size = a.size(); | 91 | 4.25k | const A* __restrict a_pos = a.data(); | 92 | 4.25k | UInt8* __restrict c_pos = c.data(); | 93 | 4.25k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 976k | while (a_pos < a_end) { | 96 | 972k | *c_pos = Op::apply(*a_pos, b); | 97 | 972k | ++a_pos; | 98 | 972k | ++c_pos; | 99 | 972k | } | 100 | 4.25k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.74k | PaddedPODArray<UInt8>& c) { | 90 | 1.74k | size_t size = a.size(); | 91 | 1.74k | const A* __restrict a_pos = a.data(); | 92 | 1.74k | UInt8* __restrict c_pos = c.data(); | 93 | 1.74k | 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.74k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.04k | PaddedPODArray<UInt8>& c) { | 90 | 1.04k | size_t size = a.size(); | 91 | 1.04k | const A* __restrict a_pos = a.data(); | 92 | 1.04k | UInt8* __restrict c_pos = c.data(); | 93 | 1.04k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 32.7k | while (a_pos < a_end) { | 96 | 31.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 31.7k | ++a_pos; | 98 | 31.7k | ++c_pos; | 99 | 31.7k | } | 100 | 1.04k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 293 | PaddedPODArray<UInt8>& c) { | 90 | 293 | size_t size = a.size(); | 91 | 293 | const A* __restrict a_pos = a.data(); | 92 | 293 | UInt8* __restrict c_pos = c.data(); | 93 | 293 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.93k | 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 | 293 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 90 | PaddedPODArray<UInt8>& c) { | 90 | 90 | size_t size = a.size(); | 91 | 90 | const A* __restrict a_pos = a.data(); | 92 | 90 | UInt8* __restrict c_pos = c.data(); | 93 | 90 | 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 | 90 | } |
_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 | 508 | PaddedPODArray<UInt8>& c) { | 90 | 508 | size_t size = a.size(); | 91 | 508 | const A* __restrict a_pos = a.data(); | 92 | 508 | UInt8* __restrict c_pos = c.data(); | 93 | 508 | 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 | 508 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 751 | PaddedPODArray<UInt8>& c) { | 90 | 751 | size_t size = a.size(); | 91 | 751 | const A* __restrict a_pos = a.data(); | 92 | 751 | UInt8* __restrict c_pos = c.data(); | 93 | 751 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 283k | while (a_pos < a_end) { | 96 | 282k | *c_pos = Op::apply(*a_pos, b); | 97 | 282k | ++a_pos; | 98 | 282k | ++c_pos; | 99 | 282k | } | 100 | 751 | } |
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 | 29 | PaddedPODArray<UInt8>& c) { | 90 | 29 | size_t size = a.size(); | 91 | 29 | const A* __restrict a_pos = a.data(); | 92 | 29 | UInt8* __restrict c_pos = c.data(); | 93 | 29 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 116k | while (a_pos < a_end) { | 96 | 116k | *c_pos = Op::apply(*a_pos, b); | 97 | 116k | ++a_pos; | 98 | 116k | ++c_pos; | 99 | 116k | } | 100 | 29 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 20 | PaddedPODArray<UInt8>& c) { | 90 | 20 | size_t size = a.size(); | 91 | 20 | const A* __restrict a_pos = a.data(); | 92 | 20 | UInt8* __restrict c_pos = c.data(); | 93 | 20 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 61.7k | while (a_pos < a_end) { | 96 | 61.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 61.7k | ++a_pos; | 98 | 61.7k | ++c_pos; | 99 | 61.7k | } | 100 | 20 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 455 | PaddedPODArray<UInt8>& c) { | 90 | 455 | size_t size = a.size(); | 91 | 455 | const A* __restrict a_pos = a.data(); | 92 | 455 | UInt8* __restrict c_pos = c.data(); | 93 | 455 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.42M | while (a_pos < a_end) { | 96 | 1.42M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.42M | ++a_pos; | 98 | 1.42M | ++c_pos; | 99 | 1.42M | } | 100 | 455 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 161 | PaddedPODArray<UInt8>& c) { | 90 | 161 | size_t size = a.size(); | 91 | 161 | const A* __restrict a_pos = a.data(); | 92 | 161 | UInt8* __restrict c_pos = c.data(); | 93 | 161 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 694k | while (a_pos < a_end) { | 96 | 693k | *c_pos = Op::apply(*a_pos, b); | 97 | 693k | ++a_pos; | 98 | 693k | ++c_pos; | 99 | 693k | } | 100 | 161 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 119 | PaddedPODArray<UInt8>& c) { | 90 | 119 | size_t size = a.size(); | 91 | 119 | const A* __restrict a_pos = a.data(); | 92 | 119 | UInt8* __restrict c_pos = c.data(); | 93 | 119 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 435 | while (a_pos < a_end) { | 96 | 316 | *c_pos = Op::apply(*a_pos, b); | 97 | 316 | ++a_pos; | 98 | 316 | ++c_pos; | 99 | 316 | } | 100 | 119 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 67 | PaddedPODArray<UInt8>& c) { | 90 | 67 | size_t size = a.size(); | 91 | 67 | const A* __restrict a_pos = a.data(); | 92 | 67 | UInt8* __restrict c_pos = c.data(); | 93 | 67 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 264 | while (a_pos < a_end) { | 96 | 197 | *c_pos = Op::apply(*a_pos, b); | 97 | 197 | ++a_pos; | 98 | 197 | ++c_pos; | 99 | 197 | } | 100 | 67 | } |
_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 | 63 | PaddedPODArray<UInt8>& c) { | 90 | 63 | size_t size = a.size(); | 91 | 63 | const A* __restrict a_pos = a.data(); | 92 | 63 | UInt8* __restrict c_pos = c.data(); | 93 | 63 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 149k | while (a_pos < a_end) { | 96 | 149k | *c_pos = Op::apply(*a_pos, b); | 97 | 149k | ++a_pos; | 98 | 149k | ++c_pos; | 99 | 149k | } | 100 | 63 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 64 | PaddedPODArray<UInt8>& c) { | 90 | 64 | size_t size = a.size(); | 91 | 64 | const A* __restrict a_pos = a.data(); | 92 | 64 | UInt8* __restrict c_pos = c.data(); | 93 | 64 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 132k | while (a_pos < a_end) { | 96 | 132k | *c_pos = Op::apply(*a_pos, b); | 97 | 132k | ++a_pos; | 98 | 132k | ++c_pos; | 99 | 132k | } | 100 | 64 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 84 | PaddedPODArray<UInt8>& c) { | 90 | 84 | size_t size = a.size(); | 91 | 84 | const A* __restrict a_pos = a.data(); | 92 | 84 | UInt8* __restrict c_pos = c.data(); | 93 | 84 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 135k | while (a_pos < a_end) { | 96 | 135k | *c_pos = Op::apply(*a_pos, b); | 97 | 135k | ++a_pos; | 98 | 135k | ++c_pos; | 99 | 135k | } | 100 | 84 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 103 | PaddedPODArray<UInt8>& c) { | 90 | 103 | size_t size = a.size(); | 91 | 103 | const A* __restrict a_pos = a.data(); | 92 | 103 | UInt8* __restrict c_pos = c.data(); | 93 | 103 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 139k | while (a_pos < a_end) { | 96 | 139k | *c_pos = Op::apply(*a_pos, b); | 97 | 139k | ++a_pos; | 98 | 139k | ++c_pos; | 99 | 139k | } | 100 | 103 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 816 | PaddedPODArray<UInt8>& c) { | 90 | 816 | size_t size = a.size(); | 91 | 816 | const A* __restrict a_pos = a.data(); | 92 | 816 | UInt8* __restrict c_pos = c.data(); | 93 | 816 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.89M | while (a_pos < a_end) { | 96 | 2.89M | *c_pos = Op::apply(*a_pos, b); | 97 | 2.89M | ++a_pos; | 98 | 2.89M | ++c_pos; | 99 | 2.89M | } | 100 | 816 | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.07k | PaddedPODArray<UInt8>& c) { | 90 | 6.07k | size_t size = a.size(); | 91 | 6.07k | const A* __restrict a_pos = a.data(); | 92 | 6.07k | UInt8* __restrict c_pos = c.data(); | 93 | 6.07k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 6.93M | while (a_pos < a_end) { | 96 | 6.92M | *c_pos = Op::apply(*a_pos, b); | 97 | 6.92M | ++a_pos; | 98 | 6.92M | ++c_pos; | 99 | 6.92M | } | 100 | 6.07k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 764 | PaddedPODArray<UInt8>& c) { | 90 | 764 | size_t size = a.size(); | 91 | 764 | const A* __restrict a_pos = a.data(); | 92 | 764 | UInt8* __restrict c_pos = c.data(); | 93 | 764 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.86k | while (a_pos < a_end) { | 96 | 3.09k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.09k | ++a_pos; | 98 | 3.09k | ++c_pos; | 99 | 3.09k | } | 100 | 764 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 528 | PaddedPODArray<UInt8>& c) { | 90 | 528 | size_t size = a.size(); | 91 | 528 | const A* __restrict a_pos = a.data(); | 92 | 528 | UInt8* __restrict c_pos = c.data(); | 93 | 528 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 45.3k | while (a_pos < a_end) { | 96 | 44.8k | *c_pos = Op::apply(*a_pos, b); | 97 | 44.8k | ++a_pos; | 98 | 44.8k | ++c_pos; | 99 | 44.8k | } | 100 | 528 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 17 | PaddedPODArray<UInt8>& c) { | 90 | 17 | size_t size = a.size(); | 91 | 17 | const A* __restrict a_pos = a.data(); | 92 | 17 | UInt8* __restrict c_pos = c.data(); | 93 | 17 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 31.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 | 17 | } |
_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 | 467 | PaddedPODArray<UInt8>& c) { | 90 | 467 | size_t size = a.size(); | 91 | 467 | const A* __restrict a_pos = a.data(); | 92 | 467 | UInt8* __restrict c_pos = c.data(); | 93 | 467 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.1k | ++a_pos; | 98 | 49.1k | ++c_pos; | 99 | 49.1k | } | 100 | 467 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 311 | PaddedPODArray<UInt8>& c) { | 90 | 311 | size_t size = a.size(); | 91 | 311 | const A* __restrict a_pos = a.data(); | 92 | 311 | UInt8* __restrict c_pos = c.data(); | 93 | 311 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.39k | while (a_pos < a_end) { | 96 | 3.08k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.08k | ++a_pos; | 98 | 3.08k | ++c_pos; | 99 | 3.08k | } | 100 | 311 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 10 | while (a_pos < a_end) { | 96 | 6 | *c_pos = Op::apply(*a_pos, b); | 97 | 6 | ++a_pos; | 98 | 6 | ++c_pos; | 99 | 6 | } | 100 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 105 | PaddedPODArray<UInt8>& c) { | 90 | 105 | size_t size = a.size(); | 91 | 105 | const A* __restrict a_pos = a.data(); | 92 | 105 | UInt8* __restrict c_pos = c.data(); | 93 | 105 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 355k | while (a_pos < a_end) { | 96 | 355k | *c_pos = Op::apply(*a_pos, b); | 97 | 355k | ++a_pos; | 98 | 355k | ++c_pos; | 99 | 355k | } | 100 | 105 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 107 | PaddedPODArray<UInt8>& c) { | 90 | 107 | size_t size = a.size(); | 91 | 107 | const A* __restrict a_pos = a.data(); | 92 | 107 | UInt8* __restrict c_pos = c.data(); | 93 | 107 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 107 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 7.12k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 7.12k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 7.12k | } 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 | 312 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 312 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 312 | } |
_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 | 69 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 69 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 69 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 1.16k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 1.16k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 1.16k | } |
_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 | 426 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 426 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 426 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 240 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 240 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 501 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 501 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 501 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 44 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 44 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 44 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 264 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 119 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 119 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 119 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 92 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 92 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 92 | } |
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 | 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 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 22 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 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 | 166 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 166 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 557k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 557k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 557k | } |
121 | 166 | } _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 | 48 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 48 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 215k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 215k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 215k | } | 121 | 48 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 75 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 75 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 342k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 342k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 342k | } | 121 | 75 | } |
|
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 | 407 | PaddedPODArray<UInt8>& c) { |
135 | 407 | size_t size = a_offsets.size(); |
136 | 407 | ColumnString::Offset prev_a_offset = 0; |
137 | 407 | ColumnString::Offset prev_b_offset = 0; |
138 | 407 | const auto* a_pos = a_data.data(); |
139 | 407 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.54k | for (size_t i = 0; i < size; ++i) { |
142 | 1.14k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.14k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.14k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.14k | 0); |
146 | | |
147 | 1.14k | prev_a_offset = a_offsets[i]; |
148 | 1.14k | prev_b_offset = b_offsets[i]; |
149 | 1.14k | } |
150 | 407 | } _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 | 369 | PaddedPODArray<UInt8>& c) { | 135 | 369 | size_t size = a_offsets.size(); | 136 | 369 | ColumnString::Offset prev_a_offset = 0; | 137 | 369 | ColumnString::Offset prev_b_offset = 0; | 138 | 369 | const auto* a_pos = a_data.data(); | 139 | 369 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.27k | for (size_t i = 0; i < size; ++i) { | 142 | 901 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 901 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 901 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 901 | 0); | 146 | | | 147 | 901 | prev_a_offset = a_offsets[i]; | 148 | 901 | prev_b_offset = b_offsets[i]; | 149 | 901 | } | 150 | 369 | } |
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 | 936 | PaddedPODArray<UInt8>& c) { |
157 | 936 | size_t size = a_offsets.size(); |
158 | 936 | ColumnString::Offset prev_a_offset = 0; |
159 | 936 | const auto* a_pos = a_data.data(); |
160 | 936 | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.56M | for (size_t i = 0; i < size; ++i) { |
163 | 1.56M | c[i] = Op::apply( |
164 | 1.56M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.56M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.56M | 0); |
167 | | |
168 | 1.56M | prev_a_offset = a_offsets[i]; |
169 | 1.56M | } |
170 | 936 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 232 | PaddedPODArray<UInt8>& c) { | 157 | 232 | size_t size = a_offsets.size(); | 158 | 232 | ColumnString::Offset prev_a_offset = 0; | 159 | 232 | const auto* a_pos = a_data.data(); | 160 | 232 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 358k | for (size_t i = 0; i < size; ++i) { | 163 | 358k | c[i] = Op::apply( | 164 | 358k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 358k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 358k | 0); | 167 | | | 168 | 358k | prev_a_offset = a_offsets[i]; | 169 | 358k | } | 170 | 232 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 133 | PaddedPODArray<UInt8>& c) { | 157 | 133 | size_t size = a_offsets.size(); | 158 | 133 | ColumnString::Offset prev_a_offset = 0; | 159 | 133 | const auto* a_pos = a_data.data(); | 160 | 133 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 104k | for (size_t i = 0; i < size; ++i) { | 163 | 104k | c[i] = Op::apply( | 164 | 104k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 104k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 104k | 0); | 167 | | | 168 | 104k | prev_a_offset = a_offsets[i]; | 169 | 104k | } | 170 | 133 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 235 | PaddedPODArray<UInt8>& c) { | 157 | 235 | size_t size = a_offsets.size(); | 158 | 235 | ColumnString::Offset prev_a_offset = 0; | 159 | 235 | const auto* a_pos = a_data.data(); | 160 | 235 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 576k | for (size_t i = 0; i < size; ++i) { | 163 | 576k | c[i] = Op::apply( | 164 | 576k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 576k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 576k | 0); | 167 | | | 168 | 576k | prev_a_offset = a_offsets[i]; | 169 | 576k | } | 170 | 235 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 336 | PaddedPODArray<UInt8>& c) { | 157 | 336 | size_t size = a_offsets.size(); | 158 | 336 | ColumnString::Offset prev_a_offset = 0; | 159 | 336 | const auto* a_pos = a_data.data(); | 160 | 336 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 525k | for (size_t i = 0; i < size; ++i) { | 163 | 525k | c[i] = Op::apply( | 164 | 525k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 525k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 525k | 0); | 167 | | | 168 | 525k | prev_a_offset = a_offsets[i]; | 169 | 525k | } | 170 | 336 | } |
|
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 | 66 | PaddedPODArray<UInt8>& c) { |
177 | 66 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 66 | a_data, a_size, c); |
179 | 66 | } 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 | 60 | PaddedPODArray<UInt8>& c) { | 177 | 60 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 60 | a_data, a_size, c); | 179 | 60 | } |
_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 | 468 | PaddedPODArray<UInt8>& c) { |
189 | 468 | size_t size = a_offsets.size(); |
190 | 468 | ColumnString::Offset prev_a_offset = 0; |
191 | 468 | ColumnString::Offset prev_b_offset = 0; |
192 | 468 | const auto* a_pos = a_data.data(); |
193 | 468 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 1.46k | for (size_t i = 0; i < size; ++i) { |
196 | 994 | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 994 | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 994 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 994 | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 994 | prev_a_offset = a_offsets[i]; |
203 | 994 | prev_b_offset = b_offsets[i]; |
204 | 994 | } |
205 | 468 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 458 | PaddedPODArray<UInt8>& c) { | 189 | 458 | size_t size = a_offsets.size(); | 190 | 458 | ColumnString::Offset prev_a_offset = 0; | 191 | 458 | ColumnString::Offset prev_b_offset = 0; | 192 | 458 | const auto* a_pos = a_data.data(); | 193 | 458 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 1.43k | for (size_t i = 0; i < size; ++i) { | 196 | 973 | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 973 | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 973 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 973 | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 973 | prev_a_offset = a_offsets[i]; | 203 | 973 | prev_b_offset = b_offsets[i]; | 204 | 973 | } | 205 | 458 | } |
_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.0k | PaddedPODArray<UInt8>& c) { |
212 | 20.0k | size_t size = a_offsets.size(); |
213 | 20.0k | 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.0k | } else { |
223 | 20.0k | ColumnString::Offset prev_a_offset = 0; |
224 | 20.0k | const auto* a_pos = a_data.data(); |
225 | 20.0k | const auto* b_pos = b_data.data(); |
226 | 9.26M | for (size_t i = 0; i < size; ++i) { |
227 | 9.24M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.24M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.24M | b_pos, b_size); |
230 | 9.24M | prev_a_offset = a_offsets[i]; |
231 | 9.24M | } |
232 | 20.0k | } |
233 | 20.0k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 19.9k | PaddedPODArray<UInt8>& c) { | 212 | 19.9k | size_t size = a_offsets.size(); | 213 | 19.9k | 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 | 19.9k | } else { | 223 | 19.9k | ColumnString::Offset prev_a_offset = 0; | 224 | 19.9k | const auto* a_pos = a_data.data(); | 225 | 19.9k | const auto* b_pos = b_data.data(); | 226 | 9.20M | for (size_t i = 0; i < size; ++i) { | 227 | 9.18M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.18M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.18M | b_pos, b_size); | 230 | 9.18M | prev_a_offset = a_offsets[i]; | 231 | 9.18M | } | 232 | 19.9k | } | 233 | 19.9k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 152 | PaddedPODArray<UInt8>& c) { | 212 | 152 | size_t size = a_offsets.size(); | 213 | 152 | 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 | 151 | } else { | 223 | 151 | ColumnString::Offset prev_a_offset = 0; | 224 | 151 | const auto* a_pos = a_data.data(); | 225 | 151 | const auto* b_pos = b_data.data(); | 226 | 57.1k | for (size_t i = 0; i < size; ++i) { | 227 | 57.0k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 57.0k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 57.0k | b_pos, b_size); | 230 | 57.0k | prev_a_offset = a_offsets[i]; | 231 | 57.0k | } | 232 | 151 | } | 233 | 152 | } |
|
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 | 19 | PaddedPODArray<UInt8>& c) { |
240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 19 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 19 | PaddedPODArray<UInt8>& c) { | 240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 19 | } |
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.39k | Op op) { |
298 | 3.39k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
299 | | |
300 | 3.39k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
301 | 3.39k | slot_literal->slot_type); |
302 | 3.39k | if (slot_type == nullptr) { |
303 | 293 | return unsupported_zonemap_filter(ctx); |
304 | 293 | } |
305 | 3.10k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
306 | 3.10k | if (zone_map_ptr == nullptr) { |
307 | 46 | return unsupported_zonemap_filter(ctx); |
308 | 46 | } |
309 | 3.05k | const auto& zone_map = *zone_map_ptr; |
310 | 3.05k | if (!zone_map.has_not_null) { |
311 | 58 | return ZoneMapFilterResult::kNoMatch; |
312 | 58 | } |
313 | 2.99k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
314 | 117 | return unsupported_zonemap_filter(ctx); |
315 | 117 | } |
316 | | |
317 | 2.88k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
318 | 2.88k | const auto& literal = slot_literal->literal; |
319 | 2.88k | const bool literal_is_nan = literal.is_nan(); |
320 | 2.88k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
321 | 2.88k | (effective_op == Op::NE && !literal_is_nan) || |
322 | 2.88k | (effective_op == Op::GT && !literal_is_nan) || |
323 | 2.88k | effective_op == Op::GE; |
324 | 2.88k | 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.82k | switch (effective_op) { |
329 | 1.56k | case Op::EQ: |
330 | 1.56k | return literal < zone_map.min_value || zone_map.max_value < literal |
331 | 1.56k | ? ZoneMapFilterResult::kNoMatch |
332 | 1.56k | : 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 | 393 | case Op::LT: |
338 | 393 | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
339 | 393 | : ZoneMapFilterResult::kMayMatch; |
340 | 243 | case Op::LE: |
341 | 243 | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
342 | 243 | : ZoneMapFilterResult::kMayMatch; |
343 | 258 | case Op::GT: |
344 | 258 | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
345 | 258 | : ZoneMapFilterResult::kMayMatch; |
346 | 270 | case Op::GE: |
347 | 270 | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
348 | 270 | : ZoneMapFilterResult::kMayMatch; |
349 | 2.82k | } |
350 | | |
351 | | // keep this to avoid compile failure with g++. |
352 | 0 | __builtin_unreachable(); |
353 | 2.82k | } |
354 | | |
355 | 32.6k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
356 | 32.6k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
357 | 32.6k | if (!slot_literal.has_value()) { |
358 | 18.0k | return false; |
359 | 18.0k | } |
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.5k | if (slot_literal->literal.is_null()) { |
365 | 4 | return false; |
366 | 4 | } |
367 | | |
368 | 14.5k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
369 | 14.5k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
370 | 14.5k | 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.5k | return true; |
378 | 14.5k | } |
379 | | |
380 | 0 | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
381 | 0 | if (op != Op::EQ || !can_evaluate(arguments)) { |
382 | 0 | return false; |
383 | 0 | } |
384 | 0 | const auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 0 | DORIS_CHECK(slot_literal.has_value()); |
386 | 0 | // Bloom membership cannot disprove Doris NaN equality across different physical encodings. |
387 | 0 | return !slot_literal->literal.is_nan(); |
388 | 0 | } |
389 | | |
390 | 27 | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
391 | 27 | switch (op) { |
392 | 8 | case Op::EQ: |
393 | 8 | return value == literal; |
394 | 0 | case Op::NE: |
395 | 0 | return value != literal; |
396 | 5 | case Op::LT: |
397 | 5 | return value < literal; |
398 | 0 | case Op::LE: |
399 | 0 | return value <= literal; |
400 | 14 | case Op::GT: |
401 | 14 | return value > literal; |
402 | 0 | case Op::GE: |
403 | 0 | return value >= literal; |
404 | 27 | } |
405 | 0 | __builtin_unreachable(); |
406 | 27 | } |
407 | | |
408 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
409 | 14 | const VExprSPtrs& arguments, Op op) { |
410 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
411 | 14 | DORIS_CHECK(slot_literal.has_value()); |
412 | 14 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
413 | 14 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
414 | 0 | return ZoneMapFilterResult::kUnsupported; |
415 | 0 | } |
416 | 14 | DORIS_CHECK( |
417 | 14 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
418 | 14 | if (slot_literal->literal.is_null()) { |
419 | 0 | return ZoneMapFilterResult::kUnsupported; |
420 | 0 | } |
421 | 14 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
422 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
423 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
424 | 14 | return std::ranges::any_of(dictionary->values, |
425 | 27 | [&](const Field& value) { |
426 | 27 | return dictionary_value_matches(value, slot_literal->literal, |
427 | 27 | effective_op); |
428 | 27 | }) |
429 | 14 | ? ZoneMapFilterResult::kMayMatch |
430 | 14 | : ZoneMapFilterResult::kNoMatch; |
431 | 14 | } |
432 | | |
433 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
434 | 19 | const VExprSPtrs& arguments, Op op) { |
435 | 19 | DORIS_CHECK(op == Op::EQ); |
436 | 19 | auto slot_literal = expr_zonemap::extract_bloom_filter_slot_and_literal(arguments); |
437 | 19 | DORIS_CHECK(slot_literal.has_value()); |
438 | 19 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
439 | 19 | } |
440 | | |
441 | 36.4k | inline std::optional<Op> op_from_name(std::string_view name) { |
442 | 36.4k | if (name == NameEquals::name) { |
443 | 16.7k | return Op::EQ; |
444 | 16.7k | } |
445 | 19.7k | if (name == NameNotEquals::name) { |
446 | 1.57k | return Op::NE; |
447 | 1.57k | } |
448 | 18.1k | if (name == NameLess::name) { |
449 | 4.72k | return Op::LT; |
450 | 4.72k | } |
451 | 13.4k | if (name == NameLessOrEquals::name) { |
452 | 2.15k | return Op::LE; |
453 | 2.15k | } |
454 | 11.3k | if (name == NameGreater::name) { |
455 | 6.35k | return Op::GT; |
456 | 6.35k | } |
457 | 5.03k | if (name == NameGreaterOrEquals::name) { |
458 | 5.03k | return Op::GE; |
459 | 5.03k | } |
460 | 18.4E | return std::nullopt; |
461 | 4.94k | } |
462 | | } // namespace comparison_zonemap_detail |
463 | | |
464 | | template <template <PrimitiveType> class Op, typename Name> |
465 | | class FunctionComparison : public IFunction { |
466 | | public: |
467 | | static constexpr auto name = Name::name; |
468 | 301k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 468 | 271k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 468 | 1.24k | 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.40k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 468 | 3.85k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 468 | 10.2k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
469 | | |
470 | 301k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 470 | 271k | 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.39k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 470 | 3.86k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 470 | 10.2k | FunctionComparison() = default; |
|
471 | | |
472 | 689k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 472 | 679k | 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.19k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 472 | 3.57k | 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 | 2.14k | 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 | 66.4k | const ColumnPtr& col_right_ptr) const { |
478 | 66.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
479 | 66.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
480 | | |
481 | 66.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
482 | 66.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
483 | | |
484 | 66.4k | DCHECK(!(left_is_const && right_is_const)); |
485 | | |
486 | 66.4k | if (!left_is_const && !right_is_const) { |
487 | 12.7k | auto col_res = ColumnUInt8::create(); |
488 | | |
489 | 12.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
490 | 12.7k | vec_res.resize(col_left->get_data().size()); |
491 | 12.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
492 | 12.7k | typename PrimitiveTypeTraits<PT>::CppType, |
493 | 12.7k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
494 | 12.7k | vec_res); |
495 | | |
496 | 12.7k | block.replace_by_position(result, std::move(col_res)); |
497 | 53.7k | } else if (!left_is_const && right_is_const) { |
498 | 46.6k | auto col_res = ColumnUInt8::create(); |
499 | | |
500 | 46.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
501 | 46.6k | vec_res.resize(col_left->size()); |
502 | 46.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
503 | 46.6k | typename PrimitiveTypeTraits<PT>::CppType, |
504 | 46.6k | Op<PT>>::vector_constant(col_left->get_data(), |
505 | 46.6k | col_right->get_element(0), vec_res); |
506 | | |
507 | 46.6k | block.replace_by_position(result, std::move(col_res)); |
508 | 46.6k | } else if (left_is_const && !right_is_const) { |
509 | 7.12k | auto col_res = ColumnUInt8::create(); |
510 | | |
511 | 7.12k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
512 | 7.12k | vec_res.resize(col_right->size()); |
513 | 7.12k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
514 | 7.12k | typename PrimitiveTypeTraits<PT>::CppType, |
515 | 7.12k | Op<PT>>::constant_vector(col_left->get_element(0), |
516 | 7.12k | col_right->get_data(), vec_res); |
517 | | |
518 | 7.12k | block.replace_by_position(result, std::move(col_res)); |
519 | 7.12k | } |
520 | 66.4k | return Status::OK(); |
521 | 66.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 98 | const ColumnPtr& col_right_ptr) const { | 478 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 98 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 98 | if (!left_is_const && !right_is_const) { | 487 | 68 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 68 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 68 | vec_res.resize(col_left->get_data().size()); | 491 | 68 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 68 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 68 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 68 | vec_res); | 495 | | | 496 | 68 | block.replace_by_position(result, std::move(col_res)); | 497 | 68 | } 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 | 98 | return Status::OK(); | 521 | 98 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 750 | const ColumnPtr& col_right_ptr) const { | 478 | 750 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 750 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 750 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 750 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 750 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 750 | if (!left_is_const && !right_is_const) { | 487 | 243 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 243 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 243 | vec_res.resize(col_left->get_data().size()); | 491 | 243 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 243 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 243 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 243 | vec_res); | 495 | | | 496 | 243 | 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 | 750 | return Status::OK(); | 521 | 750 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 452 | const ColumnPtr& col_right_ptr) const { | 478 | 452 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 452 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 452 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 452 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 452 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 453 | if (!left_is_const && !right_is_const) { | 487 | 270 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 270 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 270 | vec_res.resize(col_left->get_data().size()); | 491 | 270 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 270 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 270 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 270 | vec_res); | 495 | | | 496 | 270 | block.replace_by_position(result, std::move(col_res)); | 497 | 270 | } else if (!left_is_const && right_is_const) { | 498 | 183 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 183 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 183 | vec_res.resize(col_left->size()); | 502 | 183 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 183 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 183 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 183 | col_right->get_element(0), vec_res); | 506 | | | 507 | 183 | 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 | 452 | return Status::OK(); | 521 | 452 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_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 | 219 | if (!left_is_const && !right_is_const) { | 487 | 133 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 133 | vec_res.resize(col_left->get_data().size()); | 491 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 133 | vec_res); | 495 | | | 496 | 133 | block.replace_by_position(result, std::move(col_res)); | 497 | 133 | } else if (!left_is_const && right_is_const) { | 498 | 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 | 219 | return Status::OK(); | 521 | 219 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 13 | const ColumnPtr& col_right_ptr) const { | 478 | 13 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 13 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 13 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 13 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 13 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 13 | if (!left_is_const && !right_is_const) { | 487 | 3 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 3 | vec_res.resize(col_left->get_data().size()); | 491 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 3 | vec_res); | 495 | | | 496 | 3 | block.replace_by_position(result, std::move(col_res)); | 497 | 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 | 13 | return Status::OK(); | 521 | 13 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 6.11k | const ColumnPtr& col_right_ptr) const { | 478 | 6.11k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 6.11k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 6.11k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 6.11k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 6.11k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 6.11k | 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 | 5.89k | } else if (!left_is_const && right_is_const) { | 498 | 5.58k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 5.58k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 5.58k | vec_res.resize(col_left->size()); | 502 | 5.58k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 5.58k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 5.58k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 5.58k | col_right->get_element(0), vec_res); | 506 | | | 507 | 5.58k | block.replace_by_position(result, std::move(col_res)); | 508 | 5.58k | } else if (left_is_const && !right_is_const) { | 509 | 312 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 312 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 312 | vec_res.resize(col_right->size()); | 513 | 312 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 312 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 312 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 312 | col_right->get_data(), vec_res); | 517 | | | 518 | 312 | block.replace_by_position(result, std::move(col_res)); | 519 | 312 | } | 520 | 6.11k | return Status::OK(); | 521 | 6.11k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 434 | const ColumnPtr& col_right_ptr) const { | 478 | 434 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 434 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 434 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 434 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 434 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 434 | 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 | 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 | 434 | return Status::OK(); | 521 | 434 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 3.22k | const ColumnPtr& col_right_ptr) const { | 478 | 3.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 3.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 3.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 3.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 3.22k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 3.22k | if (!left_is_const && !right_is_const) { | 487 | 999 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 999 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 999 | vec_res.resize(col_left->get_data().size()); | 491 | 999 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 999 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 999 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 999 | vec_res); | 495 | | | 496 | 999 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.22k | } else if (!left_is_const && right_is_const) { | 498 | 2.15k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.15k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.15k | vec_res.resize(col_left->size()); | 502 | 2.15k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.15k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.15k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.15k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.15k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.15k | } else if (left_is_const && !right_is_const) { | 509 | 69 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 69 | vec_res.resize(col_right->size()); | 513 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 69 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 69 | col_right->get_data(), vec_res); | 517 | | | 518 | 69 | block.replace_by_position(result, std::move(col_res)); | 519 | 69 | } | 520 | 3.22k | return Status::OK(); | 521 | 3.22k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 4.04k | const ColumnPtr& col_right_ptr) const { | 478 | 4.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 4.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 4.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 4.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 4.04k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 4.04k | if (!left_is_const && !right_is_const) { | 487 | 186 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 186 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 186 | vec_res.resize(col_left->get_data().size()); | 491 | 186 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 186 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 186 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 186 | vec_res); | 495 | | | 496 | 186 | block.replace_by_position(result, std::move(col_res)); | 497 | 3.85k | } else if (!left_is_const && right_is_const) { | 498 | 2.69k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.69k | vec_res.resize(col_left->size()); | 502 | 2.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.69k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.69k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.69k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.69k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.69k | } else if (left_is_const && !right_is_const) { | 509 | 1.16k | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 1.16k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 1.16k | vec_res.resize(col_right->size()); | 513 | 1.16k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 1.16k | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 1.16k | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 1.16k | col_right->get_data(), vec_res); | 517 | | | 518 | 1.16k | block.replace_by_position(result, std::move(col_res)); | 519 | 1.16k | } | 520 | 4.04k | return Status::OK(); | 521 | 4.04k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 115 | const ColumnPtr& col_right_ptr) const { | 478 | 115 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 115 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 115 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 115 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 115 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 115 | if (!left_is_const && !right_is_const) { | 487 | 74 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 74 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 74 | vec_res.resize(col_left->get_data().size()); | 491 | 74 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 74 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 74 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 74 | vec_res); | 495 | | | 496 | 74 | block.replace_by_position(result, std::move(col_res)); | 497 | 74 | } 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 | 115 | return Status::OK(); | 521 | 115 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 22 | const ColumnPtr& col_right_ptr) const { | 478 | 22 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 22 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 22 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 22 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 22 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 22 | if (!left_is_const && !right_is_const) { | 487 | 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 | 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 | 22 | return Status::OK(); | 521 | 22 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 27 | const ColumnPtr& col_right_ptr) const { | 478 | 27 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 27 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 27 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 27 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 27 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 27 | if (!left_is_const && !right_is_const) { | 487 | 23 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 23 | vec_res.resize(col_left->get_data().size()); | 491 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 23 | vec_res); | 495 | | | 496 | 23 | block.replace_by_position(result, std::move(col_res)); | 497 | 23 | } 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 | 27 | return Status::OK(); | 521 | 27 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.79k | const ColumnPtr& col_right_ptr) const { | 478 | 2.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.79k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.79k | if (!left_is_const && !right_is_const) { | 487 | 776 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 776 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 776 | vec_res.resize(col_left->get_data().size()); | 491 | 776 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 776 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 776 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 776 | vec_res); | 495 | | | 496 | 776 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.02k | } else if (!left_is_const && right_is_const) { | 498 | 1.96k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.96k | vec_res.resize(col_left->size()); | 502 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.96k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.96k | } else if (left_is_const && !right_is_const) { | 509 | 54 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 54 | vec_res.resize(col_right->size()); | 513 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 54 | col_right->get_data(), vec_res); | 517 | | | 518 | 54 | block.replace_by_position(result, std::move(col_res)); | 519 | 54 | } | 520 | 2.79k | return Status::OK(); | 521 | 2.79k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 95 | const ColumnPtr& col_right_ptr) const { | 478 | 95 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 95 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 95 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 95 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 95 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 95 | if (!left_is_const && !right_is_const) { | 487 | 95 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 95 | vec_res.resize(col_left->get_data().size()); | 491 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 95 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 95 | vec_res); | 495 | | | 496 | 95 | block.replace_by_position(result, std::move(col_res)); | 497 | 95 | } 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 | 95 | return Status::OK(); | 521 | 95 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 645 | const ColumnPtr& col_right_ptr) const { | 478 | 645 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 645 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 645 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 645 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 645 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 645 | 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 | 537 | } else if (!left_is_const && right_is_const) { | 498 | 537 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 537 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 537 | vec_res.resize(col_left->size()); | 502 | 537 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 537 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 537 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 537 | col_right->get_element(0), vec_res); | 506 | | | 507 | 537 | block.replace_by_position(result, std::move(col_res)); | 508 | 537 | } 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 | 645 | return Status::OK(); | 521 | 645 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 4 | const ColumnPtr& col_right_ptr) const { | 478 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 4 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 4 | if (!left_is_const && !right_is_const) { | 487 | 4 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 4 | vec_res.resize(col_left->get_data().size()); | 491 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 4 | vec_res); | 495 | | | 496 | 4 | block.replace_by_position(result, std::move(col_res)); | 497 | 4 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 4 | return Status::OK(); | 521 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 70 | const ColumnPtr& col_right_ptr) const { | 478 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 70 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 70 | if (!left_is_const && !right_is_const) { | 487 | 39 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 39 | vec_res.resize(col_left->get_data().size()); | 491 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 39 | vec_res); | 495 | | | 496 | 39 | block.replace_by_position(result, std::move(col_res)); | 497 | 39 | } else if (!left_is_const && right_is_const) { | 498 | 31 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 31 | vec_res.resize(col_left->size()); | 502 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 31 | col_right->get_element(0), vec_res); | 506 | | | 507 | 31 | block.replace_by_position(result, std::move(col_res)); | 508 | 31 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 70 | return Status::OK(); | 521 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 8 | const ColumnPtr& col_right_ptr) const { | 478 | 8 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 8 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 8 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 8 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 8 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 8 | if (!left_is_const && !right_is_const) { | 487 | 8 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 8 | vec_res.resize(col_left->get_data().size()); | 491 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 8 | vec_res); | 495 | | | 496 | 8 | block.replace_by_position(result, std::move(col_res)); | 497 | 8 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 8 | return Status::OK(); | 521 | 8 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 84 | const ColumnPtr& col_right_ptr) const { | 478 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 84 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 84 | if (!left_is_const && !right_is_const) { | 487 | 56 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 56 | vec_res.resize(col_left->get_data().size()); | 491 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 56 | vec_res); | 495 | | | 496 | 56 | block.replace_by_position(result, std::move(col_res)); | 497 | 56 | } else if (!left_is_const && right_is_const) { | 498 | 28 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 28 | vec_res.resize(col_left->size()); | 502 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 28 | col_right->get_element(0), vec_res); | 506 | | | 507 | 28 | block.replace_by_position(result, std::move(col_res)); | 508 | 28 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 84 | return Status::OK(); | 521 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.87k | const ColumnPtr& col_right_ptr) const { | 478 | 1.87k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.87k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.87k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.87k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.87k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.87k | if (!left_is_const && !right_is_const) { | 487 | 1.65k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.65k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.65k | vec_res.resize(col_left->get_data().size()); | 491 | 1.65k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.65k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.65k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.65k | vec_res); | 495 | | | 496 | 1.65k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.65k | } else if (!left_is_const && right_is_const) { | 498 | 224 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 224 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 224 | vec_res.resize(col_left->size()); | 502 | 224 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 224 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 224 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 224 | col_right->get_element(0), vec_res); | 506 | | | 507 | 224 | block.replace_by_position(result, std::move(col_res)); | 508 | 224 | } 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.87k | return Status::OK(); | 521 | 1.87k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 817 | const ColumnPtr& col_right_ptr) const { | 478 | 817 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 817 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 817 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 817 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 817 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 817 | if (!left_is_const && !right_is_const) { | 487 | 365 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 365 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 365 | vec_res.resize(col_left->get_data().size()); | 491 | 365 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 365 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 365 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 365 | vec_res); | 495 | | | 496 | 365 | block.replace_by_position(result, std::move(col_res)); | 497 | 452 | } else if (!left_is_const && right_is_const) { | 498 | 26 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 26 | vec_res.resize(col_left->size()); | 502 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 26 | col_right->get_element(0), vec_res); | 506 | | | 507 | 26 | block.replace_by_position(result, std::move(col_res)); | 508 | 426 | } else if (left_is_const && !right_is_const) { | 509 | 426 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 426 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 426 | vec_res.resize(col_right->size()); | 513 | 426 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 426 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 426 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 426 | col_right->get_data(), vec_res); | 517 | | | 518 | 426 | block.replace_by_position(result, std::move(col_res)); | 519 | 426 | } | 520 | 817 | return Status::OK(); | 521 | 817 | } |
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.28k | const ColumnPtr& col_right_ptr) const { | 478 | 1.28k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.28k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.28k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.28k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.28k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.28k | if (!left_is_const && !right_is_const) { | 487 | 1.24k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.24k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.24k | vec_res.resize(col_left->get_data().size()); | 491 | 1.24k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.24k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.24k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.24k | vec_res); | 495 | | | 496 | 1.24k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.24k | } 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.28k | return Status::OK(); | 521 | 1.28k | } |
_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 | 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 | 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 | 2 | } 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 | 2 | return Status::OK(); | 521 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.63k | const ColumnPtr& col_right_ptr) const { | 478 | 1.63k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.63k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.63k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.63k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.63k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.63k | if (!left_is_const && !right_is_const) { | 487 | 67 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 67 | vec_res.resize(col_left->get_data().size()); | 491 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 67 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 67 | vec_res); | 495 | | | 496 | 67 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.56k | } else if (!left_is_const && right_is_const) { | 498 | 1.32k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.32k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.32k | vec_res.resize(col_left->size()); | 502 | 1.32k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.32k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.32k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.32k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.32k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.32k | } 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 | 1.63k | return Status::OK(); | 521 | 1.63k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.37k | const ColumnPtr& col_right_ptr) const { | 478 | 2.37k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.37k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.37k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.37k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.37k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.37k | 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.00k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.00k | vec_res.resize(col_left->size()); | 502 | 2.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.00k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.00k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.00k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.00k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.00k | } else if (left_is_const && !right_is_const) { | 509 | 240 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 240 | vec_res.resize(col_right->size()); | 513 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 240 | col_right->get_data(), vec_res); | 517 | | | 518 | 240 | block.replace_by_position(result, std::move(col_res)); | 519 | 240 | } | 520 | 2.37k | return Status::OK(); | 521 | 2.37k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 13.7k | const ColumnPtr& col_right_ptr) const { | 478 | 13.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 13.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 13.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 13.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 13.7k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 13.7k | if (!left_is_const && !right_is_const) { | 487 | 59 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 59 | vec_res.resize(col_left->get_data().size()); | 491 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 59 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 59 | vec_res); | 495 | | | 496 | 59 | block.replace_by_position(result, std::move(col_res)); | 497 | 13.6k | } else if (!left_is_const && right_is_const) { | 498 | 10.3k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 10.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 10.3k | vec_res.resize(col_left->size()); | 502 | 10.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 10.3k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 10.3k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 10.3k | col_right->get_element(0), vec_res); | 506 | | | 507 | 10.3k | block.replace_by_position(result, std::move(col_res)); | 508 | 10.3k | } else if (left_is_const && !right_is_const) { | 509 | 3.33k | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 3.33k | vec_res.resize(col_right->size()); | 513 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 3.33k | col_right->get_data(), vec_res); | 517 | | | 518 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 519 | 3.33k | } | 520 | 13.7k | return Status::OK(); | 521 | 13.7k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_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 | 178 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 178 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 178 | vec_res.resize(col_left->get_data().size()); | 491 | 178 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 178 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 178 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 178 | vec_res); | 495 | | | 496 | 178 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.16k | } else if (!left_is_const && right_is_const) { | 498 | 1.66k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.66k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.66k | vec_res.resize(col_left->size()); | 502 | 1.66k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.66k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.66k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.66k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.66k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.66k | } else if (left_is_const && !right_is_const) { | 509 | 501 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 501 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 501 | vec_res.resize(col_right->size()); | 513 | 501 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 501 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 501 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 501 | col_right->get_data(), vec_res); | 517 | | | 518 | 501 | block.replace_by_position(result, std::move(col_res)); | 519 | 501 | } | 520 | 2.34k | return Status::OK(); | 521 | 2.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 247 | const ColumnPtr& col_right_ptr) const { | 478 | 247 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 247 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 247 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 247 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 247 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 247 | 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 | 245 | } else if (!left_is_const && right_is_const) { | 498 | 201 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 201 | vec_res.resize(col_left->size()); | 502 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 201 | col_right->get_element(0), vec_res); | 506 | | | 507 | 201 | block.replace_by_position(result, std::move(col_res)); | 508 | 201 | } else if (left_is_const && !right_is_const) { | 509 | 44 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 44 | vec_res.resize(col_right->size()); | 513 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 44 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 44 | col_right->get_data(), vec_res); | 517 | | | 518 | 44 | block.replace_by_position(result, std::move(col_res)); | 519 | 44 | } | 520 | 247 | return Status::OK(); | 521 | 247 | } |
_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 | 221 | const ColumnPtr& col_right_ptr) const { | 478 | 221 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 221 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 221 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 221 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 221 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 221 | if (!left_is_const && !right_is_const) { | 487 | 21 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 21 | vec_res.resize(col_left->get_data().size()); | 491 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 21 | vec_res); | 495 | | | 496 | 21 | 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 | 200 | } 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 | 221 | return Status::OK(); | 521 | 221 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 537 | const ColumnPtr& col_right_ptr) const { | 478 | 537 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 537 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 537 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 537 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 537 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 537 | if (!left_is_const && !right_is_const) { | 487 | 29 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 29 | vec_res.resize(col_left->get_data().size()); | 491 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 29 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 29 | vec_res); | 495 | | | 496 | 29 | block.replace_by_position(result, std::move(col_res)); | 497 | 508 | } else if (!left_is_const && right_is_const) { | 498 | 508 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 508 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 508 | vec_res.resize(col_left->size()); | 502 | 508 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 508 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 508 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 508 | col_right->get_element(0), vec_res); | 506 | | | 507 | 508 | block.replace_by_position(result, std::move(col_res)); | 508 | 508 | } 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 | 537 | return Status::OK(); | 521 | 537 | } |
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 | 29 | const ColumnPtr& col_right_ptr) const { | 478 | 29 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 29 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 29 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 29 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 29 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 29 | 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 | 29 | } 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 | 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 | 29 | return Status::OK(); | 521 | 29 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_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 | 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 | 456 | } else if (!left_is_const && right_is_const) { | 498 | 450 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 450 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 450 | vec_res.resize(col_left->size()); | 502 | 450 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 450 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 450 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 450 | col_right->get_element(0), vec_res); | 506 | | | 507 | 450 | block.replace_by_position(result, std::move(col_res)); | 508 | 450 | } 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 | 457 | return Status::OK(); | 521 | 457 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 125 | const ColumnPtr& col_right_ptr) const { | 478 | 125 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 125 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 125 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 125 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 125 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 125 | if (!left_is_const && !right_is_const) { | 487 | 6 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 6 | vec_res.resize(col_left->get_data().size()); | 491 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 6 | vec_res); | 495 | | | 496 | 6 | block.replace_by_position(result, std::move(col_res)); | 497 | 119 | } else if (!left_is_const && right_is_const) { | 498 | 119 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 119 | vec_res.resize(col_left->size()); | 502 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 119 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 119 | col_right->get_element(0), vec_res); | 506 | | | 507 | 119 | block.replace_by_position(result, std::move(col_res)); | 508 | 119 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 125 | return Status::OK(); | 521 | 125 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_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 | 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 | 47 | } 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 | 406 | return Status::OK(); | 521 | 406 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_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 | 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 | 2 | } 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 | 2 | return Status::OK(); | 521 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_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 | 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 | 63 | } else if (!left_is_const && right_is_const) { | 498 | 63 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 63 | vec_res.resize(col_left->size()); | 502 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 63 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 63 | col_right->get_element(0), vec_res); | 506 | | | 507 | 63 | block.replace_by_position(result, std::move(col_res)); | 508 | 63 | } 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_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 | 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 | 84 | } else if (!left_is_const && right_is_const) { | 498 | 84 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 84 | vec_res.resize(col_left->size()); | 502 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 84 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 84 | col_right->get_element(0), vec_res); | 506 | | | 507 | 84 | block.replace_by_position(result, std::move(col_res)); | 508 | 84 | } 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 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 780 | const ColumnPtr& col_right_ptr) const { | 478 | 780 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 780 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 780 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 780 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 780 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 780 | if (!left_is_const && !right_is_const) { | 487 | 18 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 18 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 18 | vec_res.resize(col_left->get_data().size()); | 491 | 18 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 18 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 18 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 18 | vec_res); | 495 | | | 496 | 18 | block.replace_by_position(result, std::move(col_res)); | 497 | 762 | } else if (!left_is_const && right_is_const) { | 498 | 762 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 762 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 762 | vec_res.resize(col_left->size()); | 502 | 762 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 762 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 762 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 762 | col_right->get_element(0), vec_res); | 506 | | | 507 | 762 | block.replace_by_position(result, std::move(col_res)); | 508 | 762 | } 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 | 780 | return Status::OK(); | 521 | 780 | } |
_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 | 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 | 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 | 17 | } else if (!left_is_const && right_is_const) { | 498 | 17 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 17 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 17 | vec_res.resize(col_left->size()); | 502 | 17 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 17 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 17 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 17 | col_right->get_element(0), vec_res); | 506 | | | 507 | 17 | block.replace_by_position(result, std::move(col_res)); | 508 | 17 | } 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 575 | const ColumnPtr& col_right_ptr) const { | 478 | 575 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 575 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 575 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 575 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 575 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 575 | if (!left_is_const && !right_is_const) { | 487 | 108 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 108 | vec_res.resize(col_left->get_data().size()); | 491 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 108 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 108 | vec_res); | 495 | | | 496 | 108 | block.replace_by_position(result, std::move(col_res)); | 497 | 467 | } else if (!left_is_const && right_is_const) { | 498 | 467 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 467 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 467 | vec_res.resize(col_left->size()); | 502 | 467 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 467 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 467 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 467 | col_right->get_element(0), vec_res); | 506 | | | 507 | 467 | block.replace_by_position(result, std::move(col_res)); | 508 | 467 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 575 | return Status::OK(); | 521 | 575 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 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 | 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 | 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 | 105 | } else if (!left_is_const && right_is_const) { | 498 | 105 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 105 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 105 | vec_res.resize(col_left->size()); | 502 | 105 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 105 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 105 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 105 | col_right->get_element(0), vec_res); | 506 | | | 507 | 105 | block.replace_by_position(result, std::move(col_res)); | 508 | 105 | } 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 | } |
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 | 86 | const ColumnPtr& col_right_ptr) const { | 478 | 86 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 86 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 86 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 86 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 86 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 86 | if (!left_is_const && !right_is_const) { | 487 | 86 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 86 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 86 | vec_res.resize(col_left->get_data().size()); | 491 | 86 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 86 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 86 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 86 | vec_res); | 495 | | | 496 | 86 | block.replace_by_position(result, std::move(col_res)); | 497 | 86 | } 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 | 86 | return Status::OK(); | 521 | 86 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.04k | const ColumnPtr& col_right_ptr) const { | 478 | 2.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.04k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.04k | if (!left_is_const && !right_is_const) { | 487 | 1.68k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.68k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.68k | vec_res.resize(col_left->get_data().size()); | 491 | 1.68k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.68k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.68k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.68k | vec_res); | 495 | | | 496 | 1.68k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.68k | } else if (!left_is_const && right_is_const) { | 498 | 364 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 364 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 364 | vec_res.resize(col_left->size()); | 502 | 364 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 364 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 364 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 364 | col_right->get_element(0), vec_res); | 506 | | | 507 | 364 | 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.04k | return Status::OK(); | 521 | 2.04k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 298 | const ColumnPtr& col_right_ptr) const { | 478 | 298 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 298 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 298 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 298 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 298 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 298 | if (!left_is_const && !right_is_const) { | 487 | 239 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 239 | vec_res.resize(col_left->get_data().size()); | 491 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 239 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 239 | vec_res); | 495 | | | 496 | 239 | block.replace_by_position(result, std::move(col_res)); | 497 | 239 | } 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 | 298 | return Status::OK(); | 521 | 298 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 147 | const ColumnPtr& col_right_ptr) const { | 478 | 147 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 147 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 147 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 147 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 147 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 147 | 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 | 108 | } 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 | 147 | return Status::OK(); | 521 | 147 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_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 | 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 | 2 | } 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 | 3 | return Status::OK(); | 521 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.41k | const ColumnPtr& col_right_ptr) const { | 478 | 2.41k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.41k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.41k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.41k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.41k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.41k | if (!left_is_const && !right_is_const) { | 487 | 213 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 213 | vec_res.resize(col_left->get_data().size()); | 491 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 213 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 213 | vec_res); | 495 | | | 496 | 213 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.19k | } else if (!left_is_const && right_is_const) { | 498 | 1.93k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.93k | vec_res.resize(col_left->size()); | 502 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.93k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.93k | } else if (left_is_const && !right_is_const) { | 509 | 264 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 264 | vec_res.resize(col_right->size()); | 513 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 264 | col_right->get_data(), vec_res); | 517 | | | 518 | 264 | block.replace_by_position(result, std::move(col_res)); | 519 | 264 | } | 520 | 2.41k | return Status::OK(); | 521 | 2.41k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 172 | const ColumnPtr& col_right_ptr) const { | 478 | 172 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 172 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 172 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 172 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 172 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 172 | if (!left_is_const && !right_is_const) { | 487 | 158 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 158 | vec_res.resize(col_left->get_data().size()); | 491 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 158 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 158 | vec_res); | 495 | | | 496 | 158 | block.replace_by_position(result, std::move(col_res)); | 497 | 158 | } 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 | 172 | return Status::OK(); | 521 | 172 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.91k | const ColumnPtr& col_right_ptr) const { | 478 | 1.91k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.91k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.91k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.91k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.91k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.91k | 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.04k | } else if (!left_is_const && right_is_const) { | 498 | 921 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 921 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 921 | vec_res.resize(col_left->size()); | 502 | 921 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 921 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 921 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 921 | col_right->get_element(0), vec_res); | 506 | | | 507 | 921 | block.replace_by_position(result, std::move(col_res)); | 508 | 921 | } else if (left_is_const && !right_is_const) { | 509 | 119 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 119 | vec_res.resize(col_right->size()); | 513 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 119 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 119 | col_right->get_data(), vec_res); | 517 | | | 518 | 119 | block.replace_by_position(result, std::move(col_res)); | 519 | 119 | } | 520 | 1.91k | return Status::OK(); | 521 | 1.91k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 881 | const ColumnPtr& col_right_ptr) const { | 478 | 881 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 881 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 881 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 881 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 881 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 881 | if (!left_is_const && !right_is_const) { | 487 | 261 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 261 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 261 | vec_res.resize(col_left->get_data().size()); | 491 | 261 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 261 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 261 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 261 | vec_res); | 495 | | | 496 | 261 | block.replace_by_position(result, std::move(col_res)); | 497 | 620 | } else if (!left_is_const && right_is_const) { | 498 | 541 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 541 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 541 | vec_res.resize(col_left->size()); | 502 | 541 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 541 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 541 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 541 | col_right->get_element(0), vec_res); | 506 | | | 507 | 541 | block.replace_by_position(result, std::move(col_res)); | 508 | 541 | } else if (left_is_const && !right_is_const) { | 509 | 79 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 79 | vec_res.resize(col_right->size()); | 513 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 79 | col_right->get_data(), vec_res); | 517 | | | 518 | 79 | block.replace_by_position(result, std::move(col_res)); | 519 | 79 | } | 520 | 881 | return Status::OK(); | 521 | 881 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 272 | const ColumnPtr& col_right_ptr) const { | 478 | 272 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 272 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 272 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 272 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 272 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 272 | 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 | 138 | } 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 | 92 | } else if (left_is_const && !right_is_const) { | 509 | 92 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 92 | vec_res.resize(col_right->size()); | 513 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 92 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 92 | col_right->get_data(), vec_res); | 517 | | | 518 | 92 | block.replace_by_position(result, std::move(col_res)); | 519 | 92 | } | 520 | 272 | return Status::OK(); | 521 | 272 | } |
_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 | 131 | const ColumnPtr& col_right_ptr) const { | 478 | 131 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 131 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 131 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 131 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 131 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 131 | if (!left_is_const && !right_is_const) { | 487 | 131 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 131 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 131 | vec_res.resize(col_left->get_data().size()); | 491 | 131 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 131 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 131 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 131 | vec_res); | 495 | | | 496 | 131 | block.replace_by_position(result, std::move(col_res)); | 497 | 131 | } 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 | 131 | return Status::OK(); | 521 | 131 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 881 | const ColumnPtr& col_right_ptr) const { | 478 | 881 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 881 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 881 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 881 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 881 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 881 | 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 | 751 | } else if (!left_is_const && right_is_const) { | 498 | 751 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 751 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 751 | vec_res.resize(col_left->size()); | 502 | 751 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 751 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 751 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 751 | col_right->get_element(0), vec_res); | 506 | | | 507 | 751 | block.replace_by_position(result, std::move(col_res)); | 508 | 751 | } 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 | 881 | return Status::OK(); | 521 | 881 | } |
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 | 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 | 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 | 20 | } else if (!left_is_const && right_is_const) { | 498 | 20 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 20 | vec_res.resize(col_left->size()); | 502 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 20 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 20 | col_right->get_element(0), vec_res); | 506 | | | 507 | 20 | block.replace_by_position(result, std::move(col_res)); | 508 | 20 | } 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_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 580 | const ColumnPtr& col_right_ptr) const { | 478 | 580 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 580 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 580 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 580 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 580 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 580 | if (!left_is_const && !right_is_const) { | 487 | 419 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 419 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 419 | vec_res.resize(col_left->get_data().size()); | 491 | 419 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 419 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 419 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 419 | vec_res); | 495 | | | 496 | 419 | block.replace_by_position(result, std::move(col_res)); | 497 | 419 | } else if (!left_is_const && right_is_const) { | 498 | 155 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 155 | vec_res.resize(col_left->size()); | 502 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 155 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 155 | col_right->get_element(0), vec_res); | 506 | | | 507 | 155 | block.replace_by_position(result, std::move(col_res)); | 508 | 155 | } 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 | 580 | return Status::OK(); | 521 | 580 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_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 | 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 | 67 | } else if (!left_is_const && right_is_const) { | 498 | 67 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 67 | vec_res.resize(col_left->size()); | 502 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 67 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 67 | col_right->get_element(0), vec_res); | 506 | | | 507 | 67 | block.replace_by_position(result, std::move(col_res)); | 508 | 67 | } 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_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 | 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 | 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 | 2 | } 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 | 2 | return Status::OK(); | 521 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 66 | const ColumnPtr& col_right_ptr) const { | 478 | 66 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 66 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 66 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 66 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 66 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 66 | 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 | 64 | } else if (!left_is_const && right_is_const) { | 498 | 64 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 64 | vec_res.resize(col_left->size()); | 502 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 64 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 64 | col_right->get_element(0), vec_res); | 506 | | | 507 | 64 | block.replace_by_position(result, std::move(col_res)); | 508 | 64 | } 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 | 66 | return Status::OK(); | 521 | 66 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 103 | const ColumnPtr& col_right_ptr) const { | 478 | 103 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 103 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 103 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 103 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 103 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 103 | 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 | 103 | } else if (!left_is_const && right_is_const) { | 498 | 103 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 103 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 103 | vec_res.resize(col_left->size()); | 502 | 103 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 103 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 103 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 103 | col_right->get_element(0), vec_res); | 506 | | | 507 | 103 | block.replace_by_position(result, std::move(col_res)); | 508 | 103 | } 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 | 103 | return Status::OK(); | 521 | 103 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 6.14k | const ColumnPtr& col_right_ptr) const { | 478 | 6.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 6.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 6.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 6.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 6.14k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 6.14k | if (!left_is_const && !right_is_const) { | 487 | 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 | 6.12k | } else if (!left_is_const && right_is_const) { | 498 | 6.06k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 6.06k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 6.06k | vec_res.resize(col_left->size()); | 502 | 6.06k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 6.06k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 6.06k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 6.06k | col_right->get_element(0), vec_res); | 506 | | | 507 | 6.06k | block.replace_by_position(result, std::move(col_res)); | 508 | 6.06k | } 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 | 6.14k | return Status::OK(); | 521 | 6.14k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 609 | const ColumnPtr& col_right_ptr) const { | 478 | 609 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 609 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 609 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 609 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 609 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 609 | 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 | 576 | } else if (!left_is_const && right_is_const) { | 498 | 528 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 528 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 528 | vec_res.resize(col_left->size()); | 502 | 528 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 528 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 528 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 528 | col_right->get_element(0), vec_res); | 506 | | | 507 | 528 | block.replace_by_position(result, std::move(col_res)); | 508 | 528 | } 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 | 609 | return Status::OK(); | 521 | 609 | } |
_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 | 415 | const ColumnPtr& col_right_ptr) const { | 478 | 415 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 415 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 415 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 415 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 415 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 415 | if (!left_is_const && !right_is_const) { | 487 | 104 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 104 | vec_res.resize(col_left->get_data().size()); | 491 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 104 | vec_res); | 495 | | | 496 | 104 | block.replace_by_position(result, std::move(col_res)); | 497 | 311 | } else if (!left_is_const && right_is_const) { | 498 | 311 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 311 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 311 | vec_res.resize(col_left->size()); | 502 | 311 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 311 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 311 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 311 | col_right->get_element(0), vec_res); | 506 | | | 507 | 311 | block.replace_by_position(result, std::move(col_res)); | 508 | 311 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 415 | return Status::OK(); | 521 | 415 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 20 | const ColumnPtr& col_right_ptr) const { | 478 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 20 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 20 | if (!left_is_const && !right_is_const) { | 487 | 20 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 20 | vec_res.resize(col_left->get_data().size()); | 491 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 20 | vec_res); | 495 | | | 496 | 20 | block.replace_by_position(result, std::move(col_res)); | 497 | 20 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 20 | return Status::OK(); | 521 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 127 | const ColumnPtr& col_right_ptr) const { | 478 | 127 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 127 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 127 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 127 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 127 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 127 | 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 | 107 | } else if (!left_is_const && right_is_const) { | 498 | 107 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 107 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 107 | vec_res.resize(col_left->size()); | 502 | 107 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 107 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 107 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 107 | col_right->get_element(0), vec_res); | 506 | | | 507 | 107 | block.replace_by_position(result, std::move(col_res)); | 508 | 107 | } 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 | 127 | return Status::OK(); | 521 | 127 | } |
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.09k | const ColumnWithTypeAndName& col_right) const { |
525 | 3.09k | auto call = [&](const auto& type) -> bool { |
526 | 3.09k | using DispatchType = std::decay_t<decltype(type)>; |
527 | 3.09k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
528 | 3.09k | block, result, col_left, col_right); |
529 | 3.09k | return true; |
530 | 3.09k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 132 | auto call = [&](const auto& type) -> bool { | 526 | 132 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 132 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 132 | block, result, col_left, col_right); | 529 | 132 | return true; | 530 | 132 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 132 | auto call = [&](const auto& type) -> bool { | 526 | 132 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 132 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 132 | block, result, col_left, col_right); | 529 | 132 | return true; | 530 | 132 | }; |
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 | 821 | auto call = [&](const auto& type) -> bool { | 526 | 821 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 821 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 821 | block, result, col_left, col_right); | 529 | 821 | return true; | 530 | 821 | }; |
_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 | 72 | auto call = [&](const auto& type) -> bool { | 526 | 72 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 72 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 72 | block, result, col_left, col_right); | 529 | 72 | return true; | 530 | 72 | }; |
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 | 65 | auto call = [&](const auto& type) -> bool { | 526 | 65 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 65 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 65 | block, result, col_left, col_right); | 529 | 65 | return true; | 530 | 65 | }; |
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 | 662 | auto call = [&](const auto& type) -> bool { | 526 | 662 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 662 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 662 | block, result, col_left, col_right); | 529 | 662 | return true; | 530 | 662 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 2 | auto call = [&](const auto& type) -> bool { | 526 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 2 | block, result, col_left, col_right); | 529 | 2 | return true; | 530 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 4 | auto call = [&](const auto& type) -> bool { | 526 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 4 | block, result, col_left, col_right); | 529 | 4 | return true; | 530 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 53 | auto call = [&](const auto& type) -> bool { | 526 | 53 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 53 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 53 | block, result, col_left, col_right); | 529 | 53 | return true; | 530 | 53 | }; |
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 | 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 | }; |
_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 | 164 | auto call = [&](const auto& type) -> bool { | 526 | 164 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 164 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 164 | block, result, col_left, col_right); | 529 | 164 | return true; | 530 | 164 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 186 | auto call = [&](const auto& type) -> bool { | 526 | 186 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 186 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 186 | block, result, col_left, col_right); | 529 | 186 | return true; | 530 | 186 | }; |
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 | 456 | auto call = [&](const auto& type) -> bool { | 526 | 456 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 456 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 456 | block, result, col_left, col_right); | 529 | 456 | return true; | 530 | 456 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 1 | auto call = [&](const auto& type) -> bool { | 526 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 1 | block, result, col_left, col_right); | 529 | 1 | return true; | 530 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 7 | auto call = [&](const auto& type) -> bool { | 526 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 7 | block, result, col_left, col_right); | 529 | 7 | return true; | 530 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 80 | auto call = [&](const auto& type) -> bool { | 526 | 80 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 80 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 80 | block, result, col_left, col_right); | 529 | 80 | return true; | 530 | 80 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 525 | 94 | auto call = [&](const auto& type) -> bool { | 526 | 94 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 94 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 94 | block, result, col_left, col_right); | 529 | 94 | return true; | 530 | 94 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 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.09k | 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.09k | 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.09k | return Status::OK(); |
543 | 3.09k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 1.09k | const ColumnWithTypeAndName& col_right) const { | 525 | 1.09k | auto call = [&](const auto& type) -> bool { | 526 | 1.09k | using DispatchType = std::decay_t<decltype(type)>; | 527 | 1.09k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 1.09k | block, result, col_left, col_right); | 529 | 1.09k | return true; | 530 | 1.09k | }; | 531 | | | 532 | 1.09k | 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.09k | 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.09k | return Status::OK(); | 543 | 1.09k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 130 | const ColumnWithTypeAndName& col_right) const { | 525 | 130 | auto call = [&](const auto& type) -> bool { | 526 | 130 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 130 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 130 | block, result, col_left, col_right); | 529 | 130 | return true; | 530 | 130 | }; | 531 | | | 532 | 130 | 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 | 130 | 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 | 130 | return Status::OK(); | 543 | 130 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 737 | const ColumnWithTypeAndName& col_right) const { | 525 | 737 | auto call = [&](const auto& type) -> bool { | 526 | 737 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 737 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 737 | block, result, col_left, col_right); | 529 | 737 | return true; | 530 | 737 | }; | 531 | | | 532 | 737 | 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 | 737 | 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 | 737 | return Status::OK(); | 543 | 737 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 136 | const ColumnWithTypeAndName& col_right) const { | 525 | 136 | auto call = [&](const auto& type) -> bool { | 526 | 136 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 136 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 136 | block, result, col_left, col_right); | 529 | 136 | return true; | 530 | 136 | }; | 531 | | | 532 | 136 | 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 | 136 | 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 | 136 | return Status::OK(); | 543 | 136 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 807 | const ColumnWithTypeAndName& col_right) const { | 525 | 807 | auto call = [&](const auto& type) -> bool { | 526 | 807 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 807 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 807 | block, result, col_left, col_right); | 529 | 807 | return true; | 530 | 807 | }; | 531 | | | 532 | 807 | 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 | 807 | 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 | 807 | return Status::OK(); | 543 | 807 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 187 | const ColumnWithTypeAndName& col_right) const { | 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 | }; | 531 | | | 532 | 187 | 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 | 187 | 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 | 187 | return Status::OK(); | 543 | 187 | } |
|
544 | | |
545 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
546 | 21.9k | const IColumn* c1) const { |
547 | 21.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
548 | 21.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
549 | 21.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
550 | 21.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
551 | 21.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
553 | 0 | c0->get_name(), c1->get_name(), name); |
554 | 0 | } |
555 | 21.9k | DCHECK(!(c0_const && c1_const)); |
556 | 21.9k | const ColumnString::Chars* c0_const_chars = nullptr; |
557 | 21.9k | const ColumnString::Chars* c1_const_chars = nullptr; |
558 | 21.9k | ColumnString::Offset c0_const_size = 0; |
559 | 21.9k | ColumnString::Offset c1_const_size = 0; |
560 | | |
561 | 21.9k | if (c0_const) { |
562 | 85 | const ColumnString* c0_const_string = |
563 | 85 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
564 | | |
565 | 85 | if (c0_const_string) { |
566 | 85 | c0_const_chars = &c0_const_string->get_chars(); |
567 | 85 | c0_const_size = c0_const_string->get_offsets()[0]; |
568 | 85 | } else { |
569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
570 | 0 | c0->get_name(), name); |
571 | 0 | } |
572 | 85 | } |
573 | | |
574 | 21.9k | if (c1_const) { |
575 | 20.9k | const ColumnString* c1_const_string = |
576 | 20.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
577 | | |
578 | 20.9k | if (c1_const_string) { |
579 | 20.9k | c1_const_chars = &c1_const_string->get_chars(); |
580 | 20.9k | c1_const_size = c1_const_string->get_offsets()[0]; |
581 | 20.9k | } else { |
582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
583 | 0 | c1->get_name(), name); |
584 | 0 | } |
585 | 20.9k | } |
586 | | |
587 | 21.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
588 | | |
589 | 21.9k | auto c_res = ColumnUInt8::create(); |
590 | 21.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
591 | 21.9k | vec_res.resize(c0->size()); |
592 | | |
593 | 21.9k | if (c0_string && c1_string) { |
594 | 875 | StringImpl::string_vector_string_vector( |
595 | 875 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
596 | 875 | c1_string->get_offsets(), vec_res); |
597 | 21.0k | } else if (c0_string && c1_const) { |
598 | 20.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
599 | 20.9k | *c1_const_chars, c1_const_size, vec_res); |
600 | 20.9k | } else if (c0_const && c1_string) { |
601 | 85 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
602 | 85 | c1_string->get_chars(), c1_string->get_offsets(), |
603 | 85 | vec_res); |
604 | 85 | } else { |
605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
606 | 0 | c0->get_name(), c1->get_name(), name); |
607 | 0 | } |
608 | 21.9k | block.replace_by_position(result, std::move(c_res)); |
609 | 21.9k | return Status::OK(); |
610 | 21.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 20.4k | const IColumn* c1) const { | 547 | 20.4k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 20.4k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 20.4k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 20.4k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 20.4k | 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.4k | DCHECK(!(c0_const && c1_const)); | 556 | 20.4k | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 20.4k | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 20.4k | ColumnString::Offset c0_const_size = 0; | 559 | 20.4k | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 20.4k | if (c0_const) { | 562 | 19 | const ColumnString* c0_const_string = | 563 | 19 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | | | 565 | 19 | if (c0_const_string) { | 566 | 19 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 19 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 19 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 19 | } | 573 | | | 574 | 20.4k | if (c1_const) { | 575 | 19.9k | const ColumnString* c1_const_string = | 576 | 19.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 19.9k | if (c1_const_string) { | 579 | 19.9k | c1_const_chars = &c1_const_string->get_chars(); | 580 | 19.9k | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 19.9k | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 19.9k | } | 586 | | | 587 | 20.4k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 20.4k | auto c_res = ColumnUInt8::create(); | 590 | 20.4k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 20.4k | vec_res.resize(c0->size()); | 592 | | | 593 | 20.4k | if (c0_string && c1_string) { | 594 | 458 | StringImpl::string_vector_string_vector( | 595 | 458 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 458 | c1_string->get_offsets(), vec_res); | 597 | 19.9k | } else if (c0_string && c1_const) { | 598 | 19.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 19.9k | *c1_const_chars, c1_const_size, vec_res); | 600 | 19.9k | } else if (c0_const && c1_string) { | 601 | 19 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 19 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 19 | vec_res); | 604 | 19 | } else { | 605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 0 | c0->get_name(), c1->get_name(), name); | 607 | 0 | } | 608 | 20.4k | block.replace_by_position(result, std::move(c_res)); | 609 | 20.4k | return Status::OK(); | 610 | 20.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 162 | const IColumn* c1) const { | 547 | 162 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 162 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 162 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 162 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 162 | 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 | 162 | DCHECK(!(c0_const && c1_const)); | 556 | 162 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 162 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 162 | ColumnString::Offset c0_const_size = 0; | 559 | 162 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 162 | 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 | 162 | if (c1_const) { | 575 | 152 | const ColumnString* c1_const_string = | 576 | 152 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 152 | if (c1_const_string) { | 579 | 152 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 152 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 152 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 152 | } | 586 | | | 587 | 162 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 162 | auto c_res = ColumnUInt8::create(); | 590 | 162 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 162 | vec_res.resize(c0->size()); | 592 | | | 593 | 162 | 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 | 152 | } else if (c0_string && c1_const) { | 598 | 152 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 152 | *c1_const_chars, c1_const_size, vec_res); | 600 | 152 | } 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 | 162 | block.replace_by_position(result, std::move(c_res)); | 609 | 162 | return Status::OK(); | 610 | 162 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 228 | const IColumn* c1) const { | 547 | 228 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 228 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 228 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 228 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 228 | 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 | 228 | DCHECK(!(c0_const && c1_const)); | 556 | 228 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 228 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 228 | ColumnString::Offset c0_const_size = 0; | 559 | 228 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 228 | 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 | 228 | if (c1_const) { | 575 | 226 | const ColumnString* c1_const_string = | 576 | 226 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 226 | if (c1_const_string) { | 579 | 226 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 226 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 226 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 226 | } | 586 | | | 587 | 228 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 228 | auto c_res = ColumnUInt8::create(); | 590 | 228 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 228 | vec_res.resize(c0->size()); | 592 | | | 593 | 228 | 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 | 226 | } else if (c0_string && c1_const) { | 598 | 226 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 226 | *c1_const_chars, c1_const_size, vec_res); | 600 | 226 | } 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 | 228 | block.replace_by_position(result, std::move(c_res)); | 609 | 228 | return Status::OK(); | 610 | 228 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 331 | const IColumn* c1) const { | 547 | 331 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 331 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 331 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 331 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 331 | 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 | 331 | DCHECK(!(c0_const && c1_const)); | 556 | 331 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 331 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 331 | ColumnString::Offset c0_const_size = 0; | 559 | 331 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 331 | if (c0_const) { | 562 | 60 | const ColumnString* c0_const_string = | 563 | 60 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | | | 565 | 60 | if (c0_const_string) { | 566 | 60 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 60 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 60 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 60 | } | 573 | | | 574 | 331 | if (c1_const) { | 575 | 235 | const ColumnString* c1_const_string = | 576 | 235 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 235 | if (c1_const_string) { | 579 | 235 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 235 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 235 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 235 | } | 586 | | | 587 | 331 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 331 | auto c_res = ColumnUInt8::create(); | 590 | 331 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 331 | vec_res.resize(c0->size()); | 592 | | | 593 | 331 | 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 | 295 | } else if (c0_string && c1_const) { | 598 | 235 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 235 | *c1_const_chars, c1_const_size, vec_res); | 600 | 235 | } else if (c0_const && c1_string) { | 601 | 60 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 60 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 60 | vec_res); | 604 | 60 | } else { | 605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 0 | c0->get_name(), c1->get_name(), name); | 607 | 0 | } | 608 | 331 | block.replace_by_position(result, std::move(c_res)); | 609 | 331 | return Status::OK(); | 610 | 331 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 508 | const IColumn* c1) const { | 547 | 508 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 508 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 508 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 508 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 508 | 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 | 508 | DCHECK(!(c0_const && c1_const)); | 556 | 508 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 508 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 508 | ColumnString::Offset c0_const_size = 0; | 559 | 508 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 508 | 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 | 508 | if (c1_const) { | 575 | 133 | const ColumnString* c1_const_string = | 576 | 133 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 133 | if (c1_const_string) { | 579 | 133 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 133 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 133 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 133 | } | 586 | | | 587 | 508 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 508 | auto c_res = ColumnUInt8::create(); | 590 | 508 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 508 | vec_res.resize(c0->size()); | 592 | | | 593 | 508 | if (c0_string && c1_string) { | 594 | 369 | StringImpl::string_vector_string_vector( | 595 | 369 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 369 | c1_string->get_offsets(), vec_res); | 597 | 369 | } else if (c0_string && c1_const) { | 598 | 133 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 133 | *c1_const_chars, c1_const_size, vec_res); | 600 | 133 | } 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 | 508 | block.replace_by_position(result, std::move(c_res)); | 609 | 508 | return Status::OK(); | 610 | 508 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 276 | const IColumn* c1) const { | 547 | 276 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 276 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 276 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 276 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 276 | 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 | 276 | DCHECK(!(c0_const && c1_const)); | 556 | 276 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 276 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 276 | ColumnString::Offset c0_const_size = 0; | 559 | 276 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 276 | 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 | 276 | if (c1_const) { | 575 | 276 | const ColumnString* c1_const_string = | 576 | 276 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 276 | if (c1_const_string) { | 579 | 276 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 276 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 276 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 276 | } | 586 | | | 587 | 276 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 276 | auto c_res = ColumnUInt8::create(); | 590 | 276 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 276 | vec_res.resize(c0->size()); | 592 | | | 593 | 276 | 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 | 276 | } else if (c0_string && c1_const) { | 598 | 276 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 276 | *c1_const_chars, c1_const_size, vec_res); | 600 | 276 | } 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 | 276 | block.replace_by_position(result, std::move(c_res)); | 609 | 276 | return Status::OK(); | 610 | 276 | } |
|
611 | | |
612 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
613 | 188 | const IColumn* c1) const { |
614 | 188 | bool c0_const = is_column_const(*c0); |
615 | 188 | bool c1_const = is_column_const(*c1); |
616 | | |
617 | 188 | DCHECK(!(c0_const && c1_const)); |
618 | | |
619 | 188 | auto c_res = ColumnUInt8::create(); |
620 | 188 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
621 | 188 | vec_res.resize(c0->size()); |
622 | | |
623 | 188 | if (c0_const) { |
624 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
625 | 187 | } else if (c1_const) { |
626 | 165 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
627 | 165 | } else { |
628 | 22 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
629 | 22 | } |
630 | | |
631 | 188 | block.replace_by_position(result, std::move(c_res)); |
632 | 188 | } _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 | 76 | const IColumn* c1) const { | 614 | 76 | bool c0_const = is_column_const(*c0); | 615 | 76 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 76 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 76 | auto c_res = ColumnUInt8::create(); | 620 | 76 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 76 | vec_res.resize(c0->size()); | 622 | | | 623 | 76 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 76 | } else if (c1_const) { | 626 | 75 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 75 | } else { | 628 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 1 | } | 630 | | | 631 | 76 | block.replace_by_position(result, std::move(c_res)); | 632 | 76 | } |
_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 | 48 | const IColumn* c1) const { | 614 | 48 | bool c0_const = is_column_const(*c0); | 615 | 48 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 48 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 48 | auto c_res = ColumnUInt8::create(); | 620 | 48 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 48 | vec_res.resize(c0->size()); | 622 | | | 623 | 48 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 48 | } else if (c1_const) { | 626 | 48 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 48 | } else { | 628 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 0 | } | 630 | | | 631 | 48 | block.replace_by_position(result, std::move(c_res)); | 632 | 48 | } |
|
633 | | |
634 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
635 | 188 | const ColumnWithTypeAndName& c1) const { |
636 | 188 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
637 | 188 | return Status::OK(); |
638 | 188 | } _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 | 76 | const ColumnWithTypeAndName& c1) const { | 636 | 76 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 76 | return Status::OK(); | 638 | 76 | } |
_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 | 48 | const ColumnWithTypeAndName& c1) const { | 636 | 48 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 48 | return Status::OK(); | 638 | 48 | } |
|
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 | 222 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 63 | 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 | 301k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 271k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 1.23k | 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.38k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 729 | 3.84k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 10.1k | size_t get_number_of_arguments() const override { return 2; } |
|
730 | | |
731 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
732 | 3.37k | const VExprSPtrs& arguments) const override { |
733 | 3.37k | auto op = comparison_zonemap_detail::op_from_name(name); |
734 | 3.37k | DORIS_CHECK(op.has_value()); |
735 | 3.37k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
736 | 3.37k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 1.79k | const VExprSPtrs& arguments) const override { | 733 | 1.79k | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 1.79k | DORIS_CHECK(op.has_value()); | 735 | 1.79k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 151 | const VExprSPtrs& arguments) const override { | 733 | 151 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 151 | DORIS_CHECK(op.has_value()); | 735 | 151 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 151 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 282 | const VExprSPtrs& arguments) const override { | 733 | 282 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 282 | DORIS_CHECK(op.has_value()); | 735 | 282 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 282 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 393 | const VExprSPtrs& arguments) const override { | 733 | 393 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 393 | DORIS_CHECK(op.has_value()); | 735 | 393 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 393 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 505 | const VExprSPtrs& arguments) const override { | 733 | 505 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 505 | DORIS_CHECK(op.has_value()); | 735 | 505 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 505 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 251 | const VExprSPtrs& arguments) const override { | 733 | 251 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 251 | DORIS_CHECK(op.has_value()); | 735 | 251 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 251 | } |
|
737 | | |
738 | 31.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
739 | 31.9k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
740 | 31.9k | comparison_zonemap_detail::can_evaluate(arguments); |
741 | 31.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 14.3k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 14.3k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 14.3k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 14.3k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 1.41k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 1.41k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 1.41k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 1.41k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 5.91k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 5.91k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 5.93k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 5.91k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 4.32k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 4.32k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 4.34k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 4.32k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 4.01k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 4.01k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 4.01k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 4.01k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 1.88k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 1.88k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 1.89k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 1.88k | } |
|
742 | | |
743 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
744 | 14 | const VExprSPtrs& arguments) const override { |
745 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
746 | 14 | DORIS_CHECK(op.has_value()); |
747 | 14 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
748 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 744 | 4 | const VExprSPtrs& arguments) const override { | 745 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 746 | 4 | DORIS_CHECK(op.has_value()); | 747 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 748 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 744 | 3 | const VExprSPtrs& arguments) const override { | 745 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 746 | 3 | DORIS_CHECK(op.has_value()); | 747 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 748 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 744 | 7 | const VExprSPtrs& arguments) const override { | 745 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 746 | 7 | DORIS_CHECK(op.has_value()); | 747 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 748 | 7 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
749 | | |
750 | 836 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
751 | 836 | auto op = comparison_zonemap_detail::op_from_name(name); |
752 | 836 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
753 | 836 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 366 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 366 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 366 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 366 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 1 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 1 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 100 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 100 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 100 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 100 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 223 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 223 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 223 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 223 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 137 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 137 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 137 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 9 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 9 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 9 | } |
|
754 | | |
755 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
756 | 19 | const VExprSPtrs& arguments) const override { |
757 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); |
758 | 19 | DORIS_CHECK(op.has_value()); |
759 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
760 | 19 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 756 | 19 | const VExprSPtrs& arguments) const override { | 757 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); | 758 | 19 | DORIS_CHECK(op.has_value()); | 759 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 760 | 19 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
761 | | |
762 | 340 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
763 | 340 | auto op = comparison_zonemap_detail::op_from_name(name); |
764 | 340 | return op == comparison_zonemap_detail::Op::EQ && |
765 | 340 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
766 | 340 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 171 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 171 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 171 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 171 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 171 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 1 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 1 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 1 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 30 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 30 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 30 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 30 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 76 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 76 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 76 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 76 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 58 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 58 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 58 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 58 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 4 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 4 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 4 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 4 | } |
|
767 | | |
768 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
769 | 301k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
770 | 301k | return std::make_shared<DataTypeUInt8>(); |
771 | 301k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 270k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 270k | return std::make_shared<DataTypeUInt8>(); | 771 | 270k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 1.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.38k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 8.38k | return std::make_shared<DataTypeUInt8>(); | 771 | 8.38k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 3.84k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 3.84k | return std::make_shared<DataTypeUInt8>(); | 771 | 3.84k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 10.2k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 10.2k | return std::make_shared<DataTypeUInt8>(); | 771 | 10.2k | } |
|
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.31k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
779 | 1.31k | DCHECK(arguments.size() == 1); |
780 | 1.31k | DCHECK(data_type_with_names.size() == 1); |
781 | 1.31k | DCHECK(iterators.size() == 1); |
782 | 1.31k | auto* iter = iterators[0]; |
783 | 1.31k | auto data_type_with_name = data_type_with_names[0]; |
784 | 1.31k | if (iter == nullptr) { |
785 | 0 | return Status::OK(); |
786 | 0 | } |
787 | 1.31k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
788 | 298 | return Status::OK(); |
789 | 298 | } |
790 | 1.01k | segment_v2::InvertedIndexQueryType query_type; |
791 | 1.01k | std::string_view name_view(name); |
792 | 1.01k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
793 | 695 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
794 | 695 | } else if (name_view == NameLess::name) { |
795 | 79 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
796 | 245 | } else if (name_view == NameLessOrEquals::name) { |
797 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
798 | 164 | } 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.02k | if (segment_v2::is_range_query(query_type) && |
807 | 1.02k | 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 | 888 | Field param_value; |
812 | 888 | arguments[0].column->get(0, param_value); |
813 | 888 | if (param_value.is_null()) { |
814 | 2 | return Status::OK(); |
815 | 2 | } |
816 | 886 | segment_v2::InvertedIndexParam param; |
817 | 886 | param.column_name = data_type_with_name.first; |
818 | 886 | param.column_type = data_type_with_name.second; |
819 | 886 | param.query_value = param_value; |
820 | 886 | param.query_type = query_type; |
821 | 886 | param.num_rows = num_rows; |
822 | 886 | param.roaring = std::make_shared<roaring::Roaring>(); |
823 | 886 | param.analyzer_ctx = analyzer_ctx; |
824 | 886 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
825 | 740 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
826 | 740 | if (iter->has_null()) { |
827 | 739 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
828 | 739 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
829 | 739 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
830 | 739 | } |
831 | 740 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
832 | 740 | bitmap_result = result; |
833 | 740 | bitmap_result.mask_out_null(); |
834 | | |
835 | 740 | 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 | 740 | return Status::OK(); |
842 | 740 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 658 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 658 | DCHECK(arguments.size() == 1); | 780 | 658 | DCHECK(data_type_with_names.size() == 1); | 781 | 658 | DCHECK(iterators.size() == 1); | 782 | 658 | auto* iter = iterators[0]; | 783 | 658 | auto data_type_with_name = data_type_with_names[0]; | 784 | 658 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 658 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 30 | return Status::OK(); | 789 | 30 | } | 790 | 628 | segment_v2::InvertedIndexQueryType query_type; | 791 | 628 | std::string_view name_view(name); | 792 | 629 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 629 | 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 | 629 | if (segment_v2::is_range_query(query_type) && | 807 | 629 | 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 | 629 | Field param_value; | 812 | 629 | arguments[0].column->get(0, param_value); | 813 | 629 | if (param_value.is_null()) { | 814 | 2 | return Status::OK(); | 815 | 2 | } | 816 | 627 | segment_v2::InvertedIndexParam param; | 817 | 627 | param.column_name = data_type_with_name.first; | 818 | 627 | param.column_type = data_type_with_name.second; | 819 | 627 | param.query_value = param_value; | 820 | 627 | param.query_type = query_type; | 821 | 627 | param.num_rows = num_rows; | 822 | 627 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 627 | param.analyzer_ctx = analyzer_ctx; | 824 | 627 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 588 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 589 | if (iter->has_null()) { | 827 | 589 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 589 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 589 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 589 | } | 831 | 588 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 588 | bitmap_result = result; | 833 | 588 | bitmap_result.mask_out_null(); | 834 | | | 835 | 588 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 588 | return Status::OK(); | 842 | 588 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 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 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 59 | 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 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 59 | bitmap_result = result; | 833 | 59 | bitmap_result.mask_out_null(); | 834 | | | 835 | 59 | 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 | 59 | return Status::OK(); | 842 | 59 | } |
_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 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 37 | } | 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 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 179 | DCHECK(arguments.size() == 1); | 780 | 179 | DCHECK(data_type_with_names.size() == 1); | 781 | 179 | DCHECK(iterators.size() == 1); | 782 | 179 | auto* iter = iterators[0]; | 783 | 179 | auto data_type_with_name = data_type_with_names[0]; | 784 | 179 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 86 | return Status::OK(); | 789 | 86 | } | 790 | 93 | segment_v2::InvertedIndexQueryType query_type; | 791 | 93 | 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 | 93 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 93 | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 93 | } 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 | 93 | } else { | 803 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 0 | } | 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 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 5 | 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 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 5 | bitmap_result = result; | 833 | 5 | bitmap_result.mask_out_null(); | 834 | | | 835 | 5 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 5 | return Status::OK(); | 842 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 122 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 122 | DCHECK(arguments.size() == 1); | 780 | 122 | DCHECK(data_type_with_names.size() == 1); | 781 | 122 | DCHECK(iterators.size() == 1); | 782 | 122 | auto* iter = iterators[0]; | 783 | 122 | auto data_type_with_name = data_type_with_names[0]; | 784 | 122 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 122 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 43 | return Status::OK(); | 789 | 43 | } | 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 | 41 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 41 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 41 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 41 | } | 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 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 175 | DCHECK(arguments.size() == 1); | 780 | 175 | DCHECK(data_type_with_names.size() == 1); | 781 | 175 | DCHECK(iterators.size() == 1); | 782 | 175 | auto* iter = iterators[0]; | 783 | 175 | auto data_type_with_name = data_type_with_names[0]; | 784 | 175 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 94 | return Status::OK(); | 789 | 94 | } | 790 | 81 | segment_v2::InvertedIndexQueryType query_type; | 791 | 81 | 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 | 81 | } 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 | 81 | } 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 | 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 | 91.7k | uint32_t result, size_t input_rows_count) const override { |
849 | 91.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
850 | 91.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
851 | | |
852 | 91.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
853 | 91.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
854 | 91.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
855 | 91.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
856 | | |
857 | 91.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
858 | 91.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
859 | | |
860 | 91.7k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ |
861 | 458k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ |
862 | 458k | 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 | 458k | if (left_type->get_primitive_type() == TYPE && \ |
867 | 458k | 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 | 91.7k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) |
873 | 183k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) |
874 | 183k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) |
875 | 183k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) |
876 | 183k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) |
877 | | |
878 | 91.6k | #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 | 91.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
884 | 91.6k | 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 | 153k | auto can_compare = [](PrimitiveType t) -> bool { |
907 | 153k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
908 | 153k | is_timestamp_ns_type(t); |
909 | 153k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 56.8k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 56.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 56.8k | is_timestamp_ns_type(t); | 909 | 56.8k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 6.22k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 6.22k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 6.22k | is_timestamp_ns_type(t); | 909 | 6.22k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 46.4k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 46.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 46.4k | is_timestamp_ns_type(t); | 909 | 46.4k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 6.89k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 6.89k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 6.89k | is_timestamp_ns_type(t); | 909 | 6.89k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 20.3k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 20.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 20.3k | is_timestamp_ns_type(t); | 909 | 20.3k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 16.6k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 16.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 16.6k | is_timestamp_ns_type(t); | 909 | 16.6k | }; |
|
910 | | |
911 | 91.6k | if (can_compare(left_type->get_primitive_type()) && |
912 | 91.6k | 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 | 61.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 | 61.7k | } |
920 | | |
921 | 91.6k | auto compare_type = left_type->get_primitive_type(); |
922 | 91.6k | switch (compare_type) { |
923 | 233 | case TYPE_BOOLEAN: |
924 | 233 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
925 | 5.18k | case TYPE_DATEV2: |
926 | 5.18k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
927 | 946 | case TYPE_DATETIMEV2: |
928 | 946 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
929 | 910 | case TYPE_TIMESTAMP_NS: |
930 | 910 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
931 | 22 | case TYPE_TIMESTAMPTZ: |
932 | 22 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
933 | 10.3k | case TYPE_TINYINT: |
934 | 10.3k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
935 | 3.17k | case TYPE_SMALLINT: |
936 | 3.17k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
937 | 27.6k | case TYPE_INT: |
938 | 27.6k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
939 | 9.42k | case TYPE_BIGINT: |
940 | 9.42k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
941 | 697 | case TYPE_LARGEINT: |
942 | 697 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
943 | 44 | case TYPE_IPV4: |
944 | 44 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
945 | 44 | case TYPE_IPV6: |
946 | 44 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
947 | 4.85k | case TYPE_UUID: |
948 | 4.85k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
949 | 539 | case TYPE_FLOAT: |
950 | 539 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
951 | 2.38k | case TYPE_DOUBLE: |
952 | 2.38k | 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 | 315 | case TYPE_DECIMAL32: |
957 | 902 | case TYPE_DECIMAL64: |
958 | 3.03k | case TYPE_DECIMAL128I: |
959 | 3.09k | case TYPE_DECIMAL256: |
960 | 3.09k | return execute_decimal(block, result, col_with_type_and_name_left, |
961 | 3.09k | col_with_type_and_name_right); |
962 | 810 | case TYPE_CHAR: |
963 | 7.43k | case TYPE_VARCHAR: |
964 | 21.9k | case TYPE_STRING: |
965 | 21.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
966 | 188 | default: |
967 | 188 | return execute_generic(block, result, col_with_type_and_name_left, |
968 | 188 | col_with_type_and_name_right); |
969 | 91.6k | } |
970 | 0 | return Status::OK(); |
971 | 91.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 40.6k | uint32_t result, size_t input_rows_count) const override { | 849 | 40.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 40.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 40.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 40.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 40.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 40.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 40.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 40.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 40.6k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 40.6k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 40.6k | right_type->get_primitive_type() == TYPE) { \ | 863 | 40.6k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 40.6k | col_right_ptr, input_rows_count); \ | 865 | 40.6k | } \ | 866 | 40.6k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 40.6k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 40.6k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 40.6k | col_right_ptr, input_rows_count); \ | 870 | 40.6k | } | 871 | | | 872 | 40.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 81.2k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 81.2k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 81.2k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 81.1k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 40.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 | 40.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 40.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 | 40.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 40.5k | is_timestamp_ns_type(t); | 909 | 40.5k | }; | 910 | | | 911 | 40.5k | if (can_compare(left_type->get_primitive_type()) && | 912 | 40.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 | 16.2k | 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 | 16.2k | } | 920 | | | 921 | 40.5k | auto compare_type = left_type->get_primitive_type(); | 922 | 40.5k | switch (compare_type) { | 923 | 98 | case TYPE_BOOLEAN: | 924 | 98 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 750 | case TYPE_DATEV2: | 926 | 750 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 453 | case TYPE_DATETIMEV2: | 928 | 453 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 219 | case TYPE_TIMESTAMP_NS: | 930 | 219 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 13 | case TYPE_TIMESTAMPTZ: | 932 | 13 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 6.11k | case TYPE_TINYINT: | 934 | 6.11k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 434 | case TYPE_SMALLINT: | 936 | 434 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 3.22k | case TYPE_INT: | 938 | 3.22k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 4.04k | case TYPE_BIGINT: | 940 | 4.04k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 115 | case TYPE_LARGEINT: | 942 | 115 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 22 | case TYPE_IPV4: | 944 | 22 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 27 | case TYPE_IPV6: | 946 | 27 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 2.79k | case TYPE_UUID: | 948 | 2.79k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 95 | case TYPE_FLOAT: | 950 | 95 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 646 | case TYPE_DOUBLE: | 952 | 646 | 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 | 132 | case TYPE_DECIMAL32: | 957 | 264 | case TYPE_DECIMAL64: | 958 | 1.08k | case TYPE_DECIMAL128I: | 959 | 1.09k | case TYPE_DECIMAL256: | 960 | 1.09k | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 1.09k | col_with_type_and_name_right); | 962 | 562 | case TYPE_CHAR: | 963 | 6.42k | case TYPE_VARCHAR: | 964 | 20.4k | case TYPE_STRING: | 965 | 20.4k | 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 | 40.5k | } | 970 | 0 | return Status::OK(); | 971 | 40.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 3.26k | uint32_t result, size_t input_rows_count) const override { | 849 | 3.26k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 3.26k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 3.26k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 3.26k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 3.26k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 3.26k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 3.26k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 3.26k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 3.26k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 3.26k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 3.26k | right_type->get_primitive_type() == TYPE) { \ | 863 | 3.26k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 3.26k | col_right_ptr, input_rows_count); \ | 865 | 3.26k | } \ | 866 | 3.26k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 3.26k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 3.26k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 3.26k | col_right_ptr, input_rows_count); \ | 870 | 3.26k | } | 871 | | | 872 | 3.26k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 6.52k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 6.52k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 6.52k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 6.52k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 3.26k | #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.26k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 3.26k | 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.26k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 3.26k | is_timestamp_ns_type(t); | 909 | 3.26k | }; | 910 | | | 911 | 3.26k | if (can_compare(left_type->get_primitive_type()) && | 912 | 3.26k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 2.96k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 2.96k | } | 920 | | | 921 | 3.26k | auto compare_type = left_type->get_primitive_type(); | 922 | 3.26k | 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.87k | case TYPE_INT: | 938 | 1.87k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 817 | case TYPE_BIGINT: | 940 | 817 | 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 | 71 | case TYPE_DECIMAL64: | 958 | 99 | case TYPE_DECIMAL128I: | 959 | 129 | case TYPE_DECIMAL256: | 960 | 129 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 129 | col_with_type_and_name_right); | 962 | 1 | case TYPE_CHAR: | 963 | 58 | case TYPE_VARCHAR: | 964 | 162 | case TYPE_STRING: | 965 | 162 | 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.26k | } | 970 | 0 | return Status::OK(); | 971 | 3.26k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 24.0k | uint32_t result, size_t input_rows_count) const override { | 849 | 24.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 24.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 24.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 24.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 24.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 24.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 24.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 24.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 24.0k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 24.0k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 24.0k | right_type->get_primitive_type() == TYPE) { \ | 863 | 24.0k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 24.0k | col_right_ptr, input_rows_count); \ | 865 | 24.0k | } \ | 866 | 24.0k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 24.0k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 24.0k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 24.0k | col_right_ptr, input_rows_count); \ | 870 | 24.0k | } | 871 | | | 872 | 24.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 48.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 48.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 48.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 48.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 24.0k | #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 | 24.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 24.0k | 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 | 24.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 24.0k | is_timestamp_ns_type(t); | 909 | 24.0k | }; | 910 | | | 911 | 24.0k | if (can_compare(left_type->get_primitive_type()) && | 912 | 24.0k | 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 | 22.4k | 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 | 22.4k | } | 920 | | | 921 | 24.0k | auto compare_type = left_type->get_primitive_type(); | 922 | 24.0k | 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.28k | case TYPE_DATEV2: | 926 | 1.28k | 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 | 2 | case TYPE_TIMESTAMPTZ: | 932 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 1.63k | case TYPE_TINYINT: | 934 | 1.63k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 2.37k | case TYPE_SMALLINT: | 936 | 2.37k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 13.7k | case TYPE_INT: | 938 | 13.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 2.34k | case TYPE_BIGINT: | 940 | 2.34k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 247 | case TYPE_LARGEINT: | 942 | 247 | 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 | 221 | case TYPE_FLOAT: | 950 | 221 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 537 | case TYPE_DOUBLE: | 952 | 537 | 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 | 73 | case TYPE_DECIMAL64: | 958 | 735 | case TYPE_DECIMAL128I: | 959 | 737 | case TYPE_DECIMAL256: | 960 | 737 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 737 | col_with_type_and_name_right); | 962 | 14 | case TYPE_CHAR: | 963 | 127 | case TYPE_VARCHAR: | 964 | 228 | case TYPE_STRING: | 965 | 228 | 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 | 24.0k | } | 970 | 0 | return Status::OK(); | 971 | 24.0k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 3.97k | uint32_t result, size_t input_rows_count) const override { | 849 | 3.97k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 3.97k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 3.97k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 3.97k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 3.97k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 3.97k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 3.97k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 3.97k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 3.97k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 3.97k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 3.97k | right_type->get_primitive_type() == TYPE) { \ | 863 | 3.97k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 3.97k | col_right_ptr, input_rows_count); \ | 865 | 3.97k | } \ | 866 | 3.97k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 3.97k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 3.97k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 3.97k | col_right_ptr, input_rows_count); \ | 870 | 3.97k | } | 871 | | | 872 | 3.97k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 7.94k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 7.94k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 7.94k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 7.93k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 3.96k | #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.96k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 3.96k | 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 | 3.96k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 3.96k | is_timestamp_ns_type(t); | 909 | 3.96k | }; | 910 | | | 911 | 3.96k | if (can_compare(left_type->get_primitive_type()) && | 912 | 3.96k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 2.92k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 2.92k | } | 920 | | | 921 | 3.96k | auto compare_type = left_type->get_primitive_type(); | 922 | 3.96k | switch (compare_type) { | 923 | 29 | case TYPE_BOOLEAN: | 924 | 29 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 457 | case TYPE_DATEV2: | 926 | 457 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 125 | case TYPE_DATETIMEV2: | 928 | 125 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 406 | case TYPE_TIMESTAMP_NS: | 930 | 406 | 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 | 63 | case TYPE_TINYINT: | 934 | 63 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 84 | case TYPE_SMALLINT: | 936 | 84 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 781 | case TYPE_INT: | 938 | 781 | 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 | 17 | case TYPE_LARGEINT: | 942 | 17 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 1 | case TYPE_IPV4: | 944 | 1 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 1 | case TYPE_IPV6: | 946 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 575 | case TYPE_UUID: | 948 | 575 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 24 | case TYPE_FLOAT: | 950 | 24 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 130 | case TYPE_DOUBLE: | 952 | 130 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 4 | case TYPE_DECIMAL32: | 957 | 57 | case TYPE_DECIMAL64: | 958 | 125 | case TYPE_DECIMAL128I: | 959 | 136 | case TYPE_DECIMAL256: | 960 | 136 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 136 | col_with_type_and_name_right); | 962 | 29 | case TYPE_CHAR: | 963 | 265 | case TYPE_VARCHAR: | 964 | 330 | case TYPE_STRING: | 965 | 330 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 76 | default: | 967 | 76 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 76 | col_with_type_and_name_right); | 969 | 3.96k | } | 970 | 0 | return Status::OK(); | 971 | 3.96k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 11.0k | uint32_t result, size_t input_rows_count) const override { | 849 | 11.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 11.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 11.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 11.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 11.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 11.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 11.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 11.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 11.0k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 11.0k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 11.0k | right_type->get_primitive_type() == TYPE) { \ | 863 | 11.0k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 11.0k | col_right_ptr, input_rows_count); \ | 865 | 11.0k | } \ | 866 | 11.0k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 11.0k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 11.0k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 11.0k | col_right_ptr, input_rows_count); \ | 870 | 11.0k | } | 871 | | | 872 | 11.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 22.1k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 22.1k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 22.1k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 22.1k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 11.0k | #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.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 11.0k | 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.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 11.0k | is_timestamp_ns_type(t); | 909 | 11.0k | }; | 910 | | | 911 | 11.0k | if (can_compare(left_type->get_primitive_type()) && | 912 | 11.0k | 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.27k | 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.27k | } | 920 | | | 921 | 11.0k | auto compare_type = left_type->get_primitive_type(); | 922 | 11.0k | switch (compare_type) { | 923 | 86 | case TYPE_BOOLEAN: | 924 | 86 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 2.04k | case TYPE_DATEV2: | 926 | 2.04k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 298 | case TYPE_DATETIMEV2: | 928 | 298 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 147 | case TYPE_TIMESTAMP_NS: | 930 | 147 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 3 | case TYPE_TIMESTAMPTZ: | 932 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 2.40k | case TYPE_TINYINT: | 934 | 2.40k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 172 | case TYPE_SMALLINT: | 936 | 172 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 1.91k | case TYPE_INT: | 938 | 1.91k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 881 | case TYPE_BIGINT: | 940 | 881 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 272 | case TYPE_LARGEINT: | 942 | 272 | 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 | 131 | case TYPE_FLOAT: | 950 | 131 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 881 | case TYPE_DOUBLE: | 952 | 881 | 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 | 164 | case TYPE_DECIMAL32: | 957 | 350 | case TYPE_DECIMAL64: | 958 | 806 | case TYPE_DECIMAL128I: | 959 | 807 | case TYPE_DECIMAL256: | 960 | 807 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 807 | col_with_type_and_name_right); | 962 | 167 | case TYPE_CHAR: | 963 | 367 | case TYPE_VARCHAR: | 964 | 506 | case TYPE_STRING: | 965 | 506 | 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.0k | } | 970 | 0 | return Status::OK(); | 971 | 11.0k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 8.78k | uint32_t result, size_t input_rows_count) const override { | 849 | 8.78k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 8.78k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 8.78k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 8.78k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 8.78k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 8.78k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 8.78k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 8.78k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 8.78k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 8.78k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 8.78k | right_type->get_primitive_type() == TYPE) { \ | 863 | 8.78k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 8.78k | col_right_ptr, input_rows_count); \ | 865 | 8.78k | } \ | 866 | 8.78k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 8.78k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 8.78k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 8.78k | col_right_ptr, input_rows_count); \ | 870 | 8.78k | } | 871 | | | 872 | 8.78k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 17.5k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 17.5k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 17.5k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 17.5k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 8.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 | 8.78k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 8.78k | 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 | 8.78k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 8.78k | is_timestamp_ns_type(t); | 909 | 8.78k | }; | 910 | | | 911 | 8.78k | if (can_compare(left_type->get_primitive_type()) && | 912 | 8.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 | 7.90k | 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 | 7.90k | } | 920 | | | 921 | 8.78k | auto compare_type = left_type->get_primitive_type(); | 922 | 8.78k | switch (compare_type) { | 923 | 20 | case TYPE_BOOLEAN: | 924 | 20 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 579 | case TYPE_DATEV2: | 926 | 579 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 67 | case TYPE_DATETIMEV2: | 928 | 67 | 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 | 2 | case TYPE_TIMESTAMPTZ: | 932 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 66 | case TYPE_TINYINT: | 934 | 66 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 103 | case TYPE_SMALLINT: | 936 | 103 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 6.14k | case TYPE_INT: | 938 | 6.14k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 609 | case TYPE_BIGINT: | 940 | 609 | 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 | 415 | case TYPE_UUID: | 948 | 415 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 20 | case TYPE_FLOAT: | 950 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 127 | case TYPE_DOUBLE: | 952 | 127 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 7 | case TYPE_DECIMAL32: | 957 | 87 | case TYPE_DECIMAL64: | 958 | 181 | case TYPE_DECIMAL128I: | 959 | 187 | case TYPE_DECIMAL256: | 960 | 187 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 187 | col_with_type_and_name_right); | 962 | 37 | case TYPE_CHAR: | 963 | 199 | case TYPE_VARCHAR: | 964 | 276 | case TYPE_STRING: | 965 | 276 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 48 | default: | 967 | 48 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 48 | col_with_type_and_name_right); | 969 | 8.78k | } | 970 | 0 | return Status::OK(); | 971 | 8.78k | } |
|
972 | | }; |
973 | | |
974 | | } // namespace doris |