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 | 13.2k | PaddedPODArray<UInt8>& c) { |
74 | 13.2k | size_t size = a.size(); |
75 | 13.2k | const A* __restrict a_pos = a.data(); |
76 | 13.2k | const B* __restrict b_pos = b.data(); |
77 | 13.2k | UInt8* __restrict c_pos = c.data(); |
78 | 13.2k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 10.8M | while (a_pos < a_end) { |
81 | 10.8M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 10.8M | ++a_pos; |
83 | 10.8M | ++b_pos; |
84 | 10.8M | ++c_pos; |
85 | 10.8M | } |
86 | 13.2k | } 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.16k | PaddedPODArray<UInt8>& c) { | 74 | 1.16k | size_t size = a.size(); | 75 | 1.16k | const A* __restrict a_pos = a.data(); | 76 | 1.16k | const B* __restrict b_pos = b.data(); | 77 | 1.16k | UInt8* __restrict c_pos = c.data(); | 78 | 1.16k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.11M | while (a_pos < a_end) { | 81 | 6.11M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6.11M | ++a_pos; | 83 | 6.11M | ++b_pos; | 84 | 6.11M | ++c_pos; | 85 | 6.11M | } | 86 | 1.16k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 33 | PaddedPODArray<UInt8>& c) { | 74 | 33 | size_t size = a.size(); | 75 | 33 | const A* __restrict a_pos = a.data(); | 76 | 33 | const B* __restrict b_pos = b.data(); | 77 | 33 | UInt8* __restrict c_pos = c.data(); | 78 | 33 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 80 | while (a_pos < a_end) { | 81 | 47 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 47 | ++a_pos; | 83 | 47 | ++b_pos; | 84 | 47 | ++c_pos; | 85 | 47 | } | 86 | 33 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 65 | PaddedPODArray<UInt8>& c) { | 74 | 65 | size_t size = a.size(); | 75 | 65 | const A* __restrict a_pos = a.data(); | 76 | 65 | const B* __restrict b_pos = b.data(); | 77 | 65 | UInt8* __restrict c_pos = c.data(); | 78 | 65 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 372 | while (a_pos < a_end) { | 81 | 307 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 307 | ++a_pos; | 83 | 307 | ++b_pos; | 84 | 307 | ++c_pos; | 85 | 307 | } | 86 | 65 | } |
_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 | 384 | while (a_pos < a_end) { | 81 | 255 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 255 | ++a_pos; | 83 | 255 | ++b_pos; | 84 | 255 | ++c_pos; | 85 | 255 | } | 86 | 129 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 58 | PaddedPODArray<UInt8>& c) { | 74 | 58 | size_t size = a.size(); | 75 | 58 | const A* __restrict a_pos = a.data(); | 76 | 58 | const B* __restrict b_pos = b.data(); | 77 | 58 | UInt8* __restrict c_pos = c.data(); | 78 | 58 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 358 | while (a_pos < a_end) { | 81 | 300 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 300 | ++a_pos; | 83 | 300 | ++b_pos; | 84 | 300 | ++c_pos; | 85 | 300 | } | 86 | 58 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 333 | PaddedPODArray<UInt8>& c) { | 74 | 333 | size_t size = a.size(); | 75 | 333 | const A* __restrict a_pos = a.data(); | 76 | 333 | const B* __restrict b_pos = b.data(); | 77 | 333 | UInt8* __restrict c_pos = c.data(); | 78 | 333 | 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 | 333 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 31 | PaddedPODArray<UInt8>& c) { | 74 | 31 | size_t size = a.size(); | 75 | 31 | const A* __restrict a_pos = a.data(); | 76 | 31 | const B* __restrict b_pos = b.data(); | 77 | 31 | UInt8* __restrict c_pos = c.data(); | 78 | 31 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 102 | while (a_pos < a_end) { | 81 | 71 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 71 | ++a_pos; | 83 | 71 | ++b_pos; | 84 | 71 | ++c_pos; | 85 | 71 | } | 86 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 6 | PaddedPODArray<UInt8>& c) { | 74 | 6 | size_t size = a.size(); | 75 | 6 | const A* __restrict a_pos = a.data(); | 76 | 6 | const B* __restrict b_pos = b.data(); | 77 | 6 | UInt8* __restrict c_pos = c.data(); | 78 | 6 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 70 | while (a_pos < a_end) { | 81 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 64 | ++a_pos; | 83 | 64 | ++b_pos; | 84 | 64 | ++c_pos; | 85 | 64 | } | 86 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 359 | PaddedPODArray<UInt8>& c) { | 74 | 359 | size_t size = a.size(); | 75 | 359 | const A* __restrict a_pos = a.data(); | 76 | 359 | const B* __restrict b_pos = b.data(); | 77 | 359 | UInt8* __restrict c_pos = c.data(); | 78 | 359 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.45k | while (a_pos < a_end) { | 81 | 1.09k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.09k | ++a_pos; | 83 | 1.09k | ++b_pos; | 84 | 1.09k | ++c_pos; | 85 | 1.09k | } | 86 | 359 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 19 | PaddedPODArray<UInt8>& c) { | 74 | 19 | size_t size = a.size(); | 75 | 19 | const A* __restrict a_pos = a.data(); | 76 | 19 | const B* __restrict b_pos = b.data(); | 77 | 19 | UInt8* __restrict c_pos = c.data(); | 78 | 19 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 62 | while (a_pos < a_end) { | 81 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 43 | ++a_pos; | 83 | 43 | ++b_pos; | 84 | 43 | ++c_pos; | 85 | 43 | } | 86 | 19 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 16 | PaddedPODArray<UInt8>& c) { | 74 | 16 | size_t size = a.size(); | 75 | 16 | const A* __restrict a_pos = a.data(); | 76 | 16 | const B* __restrict b_pos = b.data(); | 77 | 16 | UInt8* __restrict c_pos = c.data(); | 78 | 16 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 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 | 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 | 69 | while (a_pos < a_end) { | 81 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 45 | ++a_pos; | 83 | 45 | ++b_pos; | 84 | 45 | ++c_pos; | 85 | 45 | } | 86 | 24 | } |
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.81k | PaddedPODArray<UInt8>& c) { | 74 | 1.81k | size_t size = a.size(); | 75 | 1.81k | const A* __restrict a_pos = a.data(); | 76 | 1.81k | const B* __restrict b_pos = b.data(); | 77 | 1.81k | UInt8* __restrict c_pos = c.data(); | 78 | 1.81k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.80M | while (a_pos < a_end) { | 81 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.80M | ++a_pos; | 83 | 1.80M | ++b_pos; | 84 | 1.80M | ++c_pos; | 85 | 1.80M | } | 86 | 1.81k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 236 | PaddedPODArray<UInt8>& c) { | 74 | 236 | size_t size = a.size(); | 75 | 236 | const A* __restrict a_pos = a.data(); | 76 | 236 | const B* __restrict b_pos = b.data(); | 77 | 236 | UInt8* __restrict c_pos = c.data(); | 78 | 236 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 820 | while (a_pos < a_end) { | 81 | 584 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 584 | ++a_pos; | 83 | 584 | ++b_pos; | 84 | 584 | ++c_pos; | 85 | 584 | } | 86 | 236 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 231 | while (a_pos < a_end) { | 81 | 121 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 121 | ++a_pos; | 83 | 121 | ++b_pos; | 84 | 121 | ++c_pos; | 85 | 121 | } | 86 | 110 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 207 | PaddedPODArray<UInt8>& c) { | 74 | 207 | size_t size = a.size(); | 75 | 207 | const A* __restrict a_pos = a.data(); | 76 | 207 | const B* __restrict b_pos = b.data(); | 77 | 207 | UInt8* __restrict c_pos = c.data(); | 78 | 207 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 588 | while (a_pos < a_end) { | 81 | 381 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 381 | ++a_pos; | 83 | 381 | ++b_pos; | 84 | 381 | ++c_pos; | 85 | 381 | } | 86 | 207 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 151 | PaddedPODArray<UInt8>& c) { | 74 | 151 | size_t size = a.size(); | 75 | 151 | const A* __restrict a_pos = a.data(); | 76 | 151 | const B* __restrict b_pos = b.data(); | 77 | 151 | UInt8* __restrict c_pos = c.data(); | 78 | 151 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 477 | while (a_pos < a_end) { | 81 | 326 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 326 | ++a_pos; | 83 | 326 | ++b_pos; | 84 | 326 | ++c_pos; | 85 | 326 | } | 86 | 151 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 874 | PaddedPODArray<UInt8>& c) { | 74 | 874 | size_t size = a.size(); | 75 | 874 | const A* __restrict a_pos = a.data(); | 76 | 874 | const B* __restrict b_pos = b.data(); | 77 | 874 | UInt8* __restrict c_pos = c.data(); | 78 | 874 | 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 | 874 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 339 | PaddedPODArray<UInt8>& c) { | 74 | 339 | size_t size = a.size(); | 75 | 339 | const A* __restrict a_pos = a.data(); | 76 | 339 | const B* __restrict b_pos = b.data(); | 77 | 339 | UInt8* __restrict c_pos = c.data(); | 78 | 339 | 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 | 339 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 133 | PaddedPODArray<UInt8>& c) { | 74 | 133 | size_t size = a.size(); | 75 | 133 | const A* __restrict a_pos = a.data(); | 76 | 133 | const B* __restrict b_pos = b.data(); | 77 | 133 | UInt8* __restrict c_pos = c.data(); | 78 | 133 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 440 | while (a_pos < a_end) { | 81 | 307 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 307 | ++a_pos; | 83 | 307 | ++b_pos; | 84 | 307 | ++c_pos; | 85 | 307 | } | 86 | 133 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 110 | PaddedPODArray<UInt8>& c) { | 74 | 110 | size_t size = a.size(); | 75 | 110 | const A* __restrict a_pos = a.data(); | 76 | 110 | const B* __restrict b_pos = b.data(); | 77 | 110 | UInt8* __restrict c_pos = c.data(); | 78 | 110 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 868 | while (a_pos < a_end) { | 81 | 758 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 758 | ++a_pos; | 83 | 758 | ++b_pos; | 84 | 758 | ++c_pos; | 85 | 758 | } | 86 | 110 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 129 | PaddedPODArray<UInt8>& c) { | 74 | 129 | size_t size = a.size(); | 75 | 129 | const A* __restrict a_pos = a.data(); | 76 | 129 | const B* __restrict b_pos = b.data(); | 77 | 129 | UInt8* __restrict c_pos = c.data(); | 78 | 129 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 451 | while (a_pos < a_end) { | 81 | 322 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 322 | ++a_pos; | 83 | 322 | ++b_pos; | 84 | 322 | ++c_pos; | 85 | 322 | } | 86 | 129 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 140 | PaddedPODArray<UInt8>& c) { | 74 | 140 | size_t size = a.size(); | 75 | 140 | const A* __restrict a_pos = a.data(); | 76 | 140 | const B* __restrict b_pos = b.data(); | 77 | 140 | UInt8* __restrict c_pos = c.data(); | 78 | 140 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 480 | while (a_pos < a_end) { | 81 | 340 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 340 | ++a_pos; | 83 | 340 | ++b_pos; | 84 | 340 | ++c_pos; | 85 | 340 | } | 86 | 140 | } |
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 | 387 | PaddedPODArray<UInt8>& c) { | 74 | 387 | size_t size = a.size(); | 75 | 387 | const A* __restrict a_pos = a.data(); | 76 | 387 | const B* __restrict b_pos = b.data(); | 77 | 387 | UInt8* __restrict c_pos = c.data(); | 78 | 387 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.00k | while (a_pos < a_end) { | 81 | 5.62k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.62k | ++a_pos; | 83 | 5.62k | ++b_pos; | 84 | 5.62k | ++c_pos; | 85 | 5.62k | } | 86 | 387 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 24 | PaddedPODArray<UInt8>& c) { | 74 | 24 | size_t size = a.size(); | 75 | 24 | const A* __restrict a_pos = a.data(); | 76 | 24 | const B* __restrict b_pos = b.data(); | 77 | 24 | UInt8* __restrict c_pos = c.data(); | 78 | 24 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 62 | while (a_pos < a_end) { | 81 | 38 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 38 | ++a_pos; | 83 | 38 | ++b_pos; | 84 | 38 | ++c_pos; | 85 | 38 | } | 86 | 24 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 7 | while (a_pos < a_end) { | 81 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5 | ++a_pos; | 83 | 5 | ++b_pos; | 84 | 5 | ++c_pos; | 85 | 5 | } | 86 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 24 | PaddedPODArray<UInt8>& c) { | 74 | 24 | size_t size = a.size(); | 75 | 24 | const A* __restrict a_pos = a.data(); | 76 | 24 | const B* __restrict b_pos = b.data(); | 77 | 24 | UInt8* __restrict c_pos = c.data(); | 78 | 24 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 72 | while (a_pos < a_end) { | 81 | 48 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 48 | ++a_pos; | 83 | 48 | ++b_pos; | 84 | 48 | ++c_pos; | 85 | 48 | } | 86 | 24 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 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 _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 65 | PaddedPODArray<UInt8>& c) { | 74 | 65 | size_t size = a.size(); | 75 | 65 | const A* __restrict a_pos = a.data(); | 76 | 65 | const B* __restrict b_pos = b.data(); | 77 | 65 | UInt8* __restrict c_pos = c.data(); | 78 | 65 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 134 | 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 | 65 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 196 | PaddedPODArray<UInt8>& c) { | 74 | 196 | size_t size = a.size(); | 75 | 196 | const A* __restrict a_pos = a.data(); | 76 | 196 | const B* __restrict b_pos = b.data(); | 77 | 196 | UInt8* __restrict c_pos = c.data(); | 78 | 196 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.33k | while (a_pos < a_end) { | 81 | 1.13k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.13k | ++a_pos; | 83 | 1.13k | ++b_pos; | 84 | 1.13k | ++c_pos; | 85 | 1.13k | } | 86 | 196 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 204 | PaddedPODArray<UInt8>& c) { | 74 | 204 | size_t size = a.size(); | 75 | 204 | const A* __restrict a_pos = a.data(); | 76 | 204 | const B* __restrict b_pos = b.data(); | 77 | 204 | UInt8* __restrict c_pos = c.data(); | 78 | 204 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 430 | while (a_pos < a_end) { | 81 | 226 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 226 | ++a_pos; | 83 | 226 | ++b_pos; | 84 | 226 | ++c_pos; | 85 | 226 | } | 86 | 204 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 283 | while (a_pos < a_end) { | 81 | 171 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 171 | ++a_pos; | 83 | 171 | ++b_pos; | 84 | 171 | ++c_pos; | 85 | 171 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12 | while (a_pos < a_end) { | 81 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 10 | ++a_pos; | 83 | 10 | ++b_pos; | 84 | 10 | ++c_pos; | 85 | 10 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 188 | PaddedPODArray<UInt8>& c) { | 74 | 188 | size_t size = a.size(); | 75 | 188 | const A* __restrict a_pos = a.data(); | 76 | 188 | const B* __restrict b_pos = b.data(); | 77 | 188 | UInt8* __restrict c_pos = c.data(); | 78 | 188 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 517 | while (a_pos < a_end) { | 81 | 329 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 329 | ++a_pos; | 83 | 329 | ++b_pos; | 84 | 329 | ++c_pos; | 85 | 329 | } | 86 | 188 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 92 | PaddedPODArray<UInt8>& c) { | 74 | 92 | size_t size = a.size(); | 75 | 92 | const A* __restrict a_pos = a.data(); | 76 | 92 | const B* __restrict b_pos = b.data(); | 77 | 92 | UInt8* __restrict c_pos = c.data(); | 78 | 92 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 184 | while (a_pos < a_end) { | 81 | 92 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 92 | ++a_pos; | 83 | 92 | ++b_pos; | 84 | 92 | ++c_pos; | 85 | 92 | } | 86 | 92 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 967 | PaddedPODArray<UInt8>& c) { | 74 | 967 | size_t size = a.size(); | 75 | 967 | const A* __restrict a_pos = a.data(); | 76 | 967 | const B* __restrict b_pos = b.data(); | 77 | 967 | UInt8* __restrict c_pos = c.data(); | 78 | 967 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 3.26k | while (a_pos < a_end) { | 81 | 2.29k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.29k | ++a_pos; | 83 | 2.29k | ++b_pos; | 84 | 2.29k | ++c_pos; | 85 | 2.29k | } | 86 | 967 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 155 | PaddedPODArray<UInt8>& c) { | 74 | 155 | size_t size = a.size(); | 75 | 155 | const A* __restrict a_pos = a.data(); | 76 | 155 | const B* __restrict b_pos = b.data(); | 77 | 155 | UInt8* __restrict c_pos = c.data(); | 78 | 155 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.48k | while (a_pos < a_end) { | 81 | 1.33k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.33k | ++a_pos; | 83 | 1.33k | ++b_pos; | 84 | 1.33k | ++c_pos; | 85 | 1.33k | } | 86 | 155 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 46 | PaddedPODArray<UInt8>& c) { | 74 | 46 | size_t size = a.size(); | 75 | 46 | const A* __restrict a_pos = a.data(); | 76 | 46 | const B* __restrict b_pos = b.data(); | 77 | 46 | UInt8* __restrict c_pos = c.data(); | 78 | 46 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 92 | while (a_pos < a_end) { | 81 | 46 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 46 | ++a_pos; | 83 | 46 | ++b_pos; | 84 | 46 | ++c_pos; | 85 | 46 | } | 86 | 46 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 5 | PaddedPODArray<UInt8>& c) { | 74 | 5 | size_t size = a.size(); | 75 | 5 | const A* __restrict a_pos = a.data(); | 76 | 5 | const B* __restrict b_pos = b.data(); | 77 | 5 | UInt8* __restrict c_pos = c.data(); | 78 | 5 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5 | ++a_pos; | 83 | 5 | ++b_pos; | 84 | 5 | ++c_pos; | 85 | 5 | } | 86 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 13 | PaddedPODArray<UInt8>& c) { | 74 | 13 | size_t size = a.size(); | 75 | 13 | const A* __restrict a_pos = a.data(); | 76 | 13 | const B* __restrict b_pos = b.data(); | 77 | 13 | UInt8* __restrict c_pos = c.data(); | 78 | 13 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 26 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 779 | PaddedPODArray<UInt8>& c) { | 74 | 779 | size_t size = a.size(); | 75 | 779 | const A* __restrict a_pos = a.data(); | 76 | 779 | const B* __restrict b_pos = b.data(); | 77 | 779 | UInt8* __restrict c_pos = c.data(); | 78 | 779 | 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 | 779 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 72 | PaddedPODArray<UInt8>& c) { | 74 | 72 | size_t size = a.size(); | 75 | 72 | const A* __restrict a_pos = a.data(); | 76 | 72 | const B* __restrict b_pos = b.data(); | 77 | 72 | UInt8* __restrict c_pos = c.data(); | 78 | 72 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 163 | while (a_pos < a_end) { | 81 | 91 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 91 | ++a_pos; | 83 | 91 | ++b_pos; | 84 | 91 | ++c_pos; | 85 | 91 | } | 86 | 72 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 92 | PaddedPODArray<UInt8>& c) { | 74 | 92 | size_t size = a.size(); | 75 | 92 | const A* __restrict a_pos = a.data(); | 76 | 92 | const B* __restrict b_pos = b.data(); | 77 | 92 | UInt8* __restrict c_pos = c.data(); | 78 | 92 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 250 | while (a_pos < a_end) { | 81 | 158 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 158 | ++a_pos; | 83 | 158 | ++b_pos; | 84 | 158 | ++c_pos; | 85 | 158 | } | 86 | 92 | } |
_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 | 2.23k | PaddedPODArray<UInt8>& c) { | 74 | 2.23k | size_t size = a.size(); | 75 | 2.23k | const A* __restrict a_pos = a.data(); | 76 | 2.23k | const B* __restrict b_pos = b.data(); | 77 | 2.23k | UInt8* __restrict c_pos = c.data(); | 78 | 2.23k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.74M | while (a_pos < a_end) { | 81 | 1.74M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.74M | ++a_pos; | 83 | 1.74M | ++b_pos; | 84 | 1.74M | ++c_pos; | 85 | 1.74M | } | 86 | 2.23k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 383 | PaddedPODArray<UInt8>& c) { | 74 | 383 | size_t size = a.size(); | 75 | 383 | const A* __restrict a_pos = a.data(); | 76 | 383 | const B* __restrict b_pos = b.data(); | 77 | 383 | UInt8* __restrict c_pos = c.data(); | 78 | 383 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 7.39k | while (a_pos < a_end) { | 81 | 7.00k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 7.00k | ++a_pos; | 83 | 7.00k | ++b_pos; | 84 | 7.00k | ++c_pos; | 85 | 7.00k | } | 86 | 383 | } |
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 |
87 | | |
88 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
89 | 109k | PaddedPODArray<UInt8>& c) { |
90 | 109k | size_t size = a.size(); |
91 | 109k | const A* __restrict a_pos = a.data(); |
92 | 109k | UInt8* __restrict c_pos = c.data(); |
93 | 109k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 34.8M | while (a_pos < a_end) { |
96 | 34.7M | *c_pos = Op::apply(*a_pos, b); |
97 | 34.7M | ++a_pos; |
98 | 34.7M | ++c_pos; |
99 | 34.7M | } |
100 | 109k | } 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 | 373 | PaddedPODArray<UInt8>& c) { | 90 | 373 | size_t size = a.size(); | 91 | 373 | const A* __restrict a_pos = a.data(); | 92 | 373 | UInt8* __restrict c_pos = c.data(); | 93 | 373 | 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 | 373 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 6 | 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 | 2 | } |
_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.51k | PaddedPODArray<UInt8>& c) { | 90 | 1.51k | size_t size = a.size(); | 91 | 1.51k | const A* __restrict a_pos = a.data(); | 92 | 1.51k | UInt8* __restrict c_pos = c.data(); | 93 | 1.51k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 13.7k | while (a_pos < a_end) { | 96 | 12.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 12.1k | ++a_pos; | 98 | 12.1k | ++c_pos; | 99 | 12.1k | } | 100 | 1.51k | } |
_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.95k | while (a_pos < a_end) { | 96 | 3.77k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.77k | ++a_pos; | 98 | 3.77k | ++c_pos; | 99 | 3.77k | } | 100 | 2.17k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.01k | PaddedPODArray<UInt8>& c) { | 90 | 2.01k | size_t size = a.size(); | 91 | 2.01k | const A* __restrict a_pos = a.data(); | 92 | 2.01k | UInt8* __restrict c_pos = c.data(); | 93 | 2.01k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.38k | while (a_pos < a_end) { | 96 | 5.36k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.36k | ++a_pos; | 98 | 5.36k | ++c_pos; | 99 | 5.36k | } | 100 | 2.01k | } |
_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 | 937 | *c_pos = Op::apply(*a_pos, b); | 97 | 937 | ++a_pos; | 98 | 937 | ++c_pos; | 99 | 937 | } | 100 | 254 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.54k | PaddedPODArray<UInt8>& c) { | 90 | 5.54k | size_t size = a.size(); | 91 | 5.54k | const A* __restrict a_pos = a.data(); | 92 | 5.54k | UInt8* __restrict c_pos = c.data(); | 93 | 5.54k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 960k | while (a_pos < a_end) { | 96 | 955k | *c_pos = Op::apply(*a_pos, b); | 97 | 955k | ++a_pos; | 98 | 955k | ++c_pos; | 99 | 955k | } | 100 | 5.54k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 63.4k | PaddedPODArray<UInt8>& c) { | 90 | 63.4k | size_t size = a.size(); | 91 | 63.4k | const A* __restrict a_pos = a.data(); | 92 | 63.4k | UInt8* __restrict c_pos = c.data(); | 93 | 63.4k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.34M | while (a_pos < a_end) { | 96 | 5.28M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.28M | ++a_pos; | 98 | 5.28M | ++c_pos; | 99 | 5.28M | } | 100 | 63.4k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.92k | PaddedPODArray<UInt8>& c) { | 90 | 1.92k | size_t size = a.size(); | 91 | 1.92k | const A* __restrict a_pos = a.data(); | 92 | 1.92k | UInt8* __restrict c_pos = c.data(); | 93 | 1.92k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 98.8k | while (a_pos < a_end) { | 96 | 96.9k | *c_pos = Op::apply(*a_pos, b); | 97 | 96.9k | ++a_pos; | 98 | 96.9k | ++c_pos; | 99 | 96.9k | } | 100 | 1.92k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.08k | PaddedPODArray<UInt8>& c) { | 90 | 1.08k | size_t size = a.size(); | 91 | 1.08k | const A* __restrict a_pos = a.data(); | 92 | 1.08k | UInt8* __restrict c_pos = c.data(); | 93 | 1.08k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 32.8k | while (a_pos < a_end) { | 96 | 31.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 31.7k | ++a_pos; | 98 | 31.7k | ++c_pos; | 99 | 31.7k | } | 100 | 1.08k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 271 | PaddedPODArray<UInt8>& c) { | 90 | 271 | size_t size = a.size(); | 91 | 271 | const A* __restrict a_pos = a.data(); | 92 | 271 | UInt8* __restrict c_pos = c.data(); | 93 | 271 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.90k | while (a_pos < a_end) { | 96 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.63k | ++a_pos; | 98 | 1.63k | ++c_pos; | 99 | 1.63k | } | 100 | 271 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 112 | PaddedPODArray<UInt8>& c) { | 90 | 112 | size_t size = a.size(); | 91 | 112 | const A* __restrict a_pos = a.data(); | 92 | 112 | UInt8* __restrict c_pos = c.data(); | 93 | 112 | 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 | 112 | } |
_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 | 510 | PaddedPODArray<UInt8>& c) { | 90 | 510 | size_t size = a.size(); | 91 | 510 | const A* __restrict a_pos = a.data(); | 92 | 510 | UInt8* __restrict c_pos = c.data(); | 93 | 510 | 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 | 510 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.01k | PaddedPODArray<UInt8>& c) { | 90 | 1.01k | size_t size = a.size(); | 91 | 1.01k | const A* __restrict a_pos = a.data(); | 92 | 1.01k | UInt8* __restrict c_pos = c.data(); | 93 | 1.01k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 284k | while (a_pos < a_end) { | 96 | 283k | *c_pos = Op::apply(*a_pos, b); | 97 | 283k | ++a_pos; | 98 | 283k | ++c_pos; | 99 | 283k | } | 100 | 1.01k | } |
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 | 27 | PaddedPODArray<UInt8>& c) { | 90 | 27 | size_t size = a.size(); | 91 | 27 | const A* __restrict a_pos = a.data(); | 92 | 27 | UInt8* __restrict c_pos = c.data(); | 93 | 27 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 131k | while (a_pos < a_end) { | 96 | 131k | *c_pos = Op::apply(*a_pos, b); | 97 | 131k | ++a_pos; | 98 | 131k | ++c_pos; | 99 | 131k | } | 100 | 27 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 35 | PaddedPODArray<UInt8>& c) { | 90 | 35 | size_t size = a.size(); | 91 | 35 | const A* __restrict a_pos = a.data(); | 92 | 35 | UInt8* __restrict c_pos = c.data(); | 93 | 35 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 129k | while (a_pos < a_end) { | 96 | 129k | *c_pos = Op::apply(*a_pos, b); | 97 | 129k | ++a_pos; | 98 | 129k | ++c_pos; | 99 | 129k | } | 100 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 460 | PaddedPODArray<UInt8>& c) { | 90 | 460 | size_t size = a.size(); | 91 | 460 | const A* __restrict a_pos = a.data(); | 92 | 460 | UInt8* __restrict c_pos = c.data(); | 93 | 460 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.43M | while (a_pos < a_end) { | 96 | 1.43M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.43M | ++a_pos; | 98 | 1.43M | ++c_pos; | 99 | 1.43M | } | 100 | 460 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 178 | PaddedPODArray<UInt8>& c) { | 90 | 178 | size_t size = a.size(); | 91 | 178 | const A* __restrict a_pos = a.data(); | 92 | 178 | UInt8* __restrict c_pos = c.data(); | 93 | 178 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 753k | while (a_pos < a_end) { | 96 | 753k | *c_pos = Op::apply(*a_pos, b); | 97 | 753k | ++a_pos; | 98 | 753k | ++c_pos; | 99 | 753k | } | 100 | 178 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 113 | PaddedPODArray<UInt8>& c) { | 90 | 113 | size_t size = a.size(); | 91 | 113 | const A* __restrict a_pos = a.data(); | 92 | 113 | UInt8* __restrict c_pos = c.data(); | 93 | 113 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 417 | while (a_pos < a_end) { | 96 | 304 | *c_pos = Op::apply(*a_pos, b); | 97 | 304 | ++a_pos; | 98 | 304 | ++c_pos; | 99 | 304 | } | 100 | 113 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 55 | PaddedPODArray<UInt8>& c) { | 90 | 55 | size_t size = a.size(); | 91 | 55 | const A* __restrict a_pos = a.data(); | 92 | 55 | UInt8* __restrict c_pos = c.data(); | 93 | 55 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 193 | while (a_pos < a_end) { | 96 | 138 | *c_pos = Op::apply(*a_pos, b); | 97 | 138 | ++a_pos; | 98 | 138 | ++c_pos; | 99 | 138 | } | 100 | 55 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 43 | PaddedPODArray<UInt8>& c) { | 90 | 43 | size_t size = a.size(); | 91 | 43 | const A* __restrict a_pos = a.data(); | 92 | 43 | UInt8* __restrict c_pos = c.data(); | 93 | 43 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101 | while (a_pos < a_end) { | 96 | 58 | *c_pos = Op::apply(*a_pos, b); | 97 | 58 | ++a_pos; | 98 | 58 | ++c_pos; | 99 | 58 | } | 100 | 43 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 35 | PaddedPODArray<UInt8>& c) { | 90 | 35 | size_t size = a.size(); | 91 | 35 | const A* __restrict a_pos = a.data(); | 92 | 35 | UInt8* __restrict c_pos = c.data(); | 93 | 35 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 79 | while (a_pos < a_end) { | 96 | 44 | *c_pos = Op::apply(*a_pos, b); | 97 | 44 | ++a_pos; | 98 | 44 | ++c_pos; | 99 | 44 | } | 100 | 35 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3 | while (a_pos < a_end) { | 96 | 2 | *c_pos = Op::apply(*a_pos, b); | 97 | 2 | ++a_pos; | 98 | 2 | ++c_pos; | 99 | 2 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 74 | PaddedPODArray<UInt8>& c) { | 90 | 74 | size_t size = a.size(); | 91 | 74 | const A* __restrict a_pos = a.data(); | 92 | 74 | UInt8* __restrict c_pos = c.data(); | 93 | 74 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 123k | while (a_pos < a_end) { | 96 | 123k | *c_pos = Op::apply(*a_pos, b); | 97 | 123k | ++a_pos; | 98 | 123k | ++c_pos; | 99 | 123k | } | 100 | 74 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 101 | PaddedPODArray<UInt8>& c) { | 90 | 101 | size_t size = a.size(); | 91 | 101 | const A* __restrict a_pos = a.data(); | 92 | 101 | UInt8* __restrict c_pos = c.data(); | 93 | 101 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 133k | while (a_pos < a_end) { | 96 | 133k | *c_pos = Op::apply(*a_pos, b); | 97 | 133k | ++a_pos; | 98 | 133k | ++c_pos; | 99 | 133k | } | 100 | 101 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 98 | PaddedPODArray<UInt8>& c) { | 90 | 98 | size_t size = a.size(); | 91 | 98 | const A* __restrict a_pos = a.data(); | 92 | 98 | UInt8* __restrict c_pos = c.data(); | 93 | 98 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 174k | 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 | 98 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_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 | 137k | while (a_pos < a_end) { | 96 | 137k | *c_pos = Op::apply(*a_pos, b); | 97 | 137k | ++a_pos; | 98 | 137k | ++c_pos; | 99 | 137k | } | 100 | 119 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.09k | PaddedPODArray<UInt8>& c) { | 90 | 1.09k | size_t size = a.size(); | 91 | 1.09k | const A* __restrict a_pos = a.data(); | 92 | 1.09k | UInt8* __restrict c_pos = c.data(); | 93 | 1.09k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.11M | while (a_pos < a_end) { | 96 | 3.11M | *c_pos = Op::apply(*a_pos, b); | 97 | 3.11M | ++a_pos; | 98 | 3.11M | ++c_pos; | 99 | 3.11M | } | 100 | 1.09k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.50k | PaddedPODArray<UInt8>& c) { | 90 | 6.50k | size_t size = a.size(); | 91 | 6.50k | const A* __restrict a_pos = a.data(); | 92 | 6.50k | UInt8* __restrict c_pos = c.data(); | 93 | 6.50k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.06M | while (a_pos < a_end) { | 96 | 7.06M | *c_pos = Op::apply(*a_pos, b); | 97 | 7.06M | ++a_pos; | 98 | 7.06M | ++c_pos; | 99 | 7.06M | } | 100 | 6.50k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 828 | PaddedPODArray<UInt8>& c) { | 90 | 828 | size_t size = a.size(); | 91 | 828 | const A* __restrict a_pos = a.data(); | 92 | 828 | UInt8* __restrict c_pos = c.data(); | 93 | 828 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.20k | while (a_pos < a_end) { | 96 | 1.37k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.37k | ++a_pos; | 98 | 1.37k | ++c_pos; | 99 | 1.37k | } | 100 | 828 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 623 | PaddedPODArray<UInt8>& c) { | 90 | 623 | size_t size = a.size(); | 91 | 623 | const A* __restrict a_pos = a.data(); | 92 | 623 | UInt8* __restrict c_pos = c.data(); | 93 | 623 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 46.3k | while (a_pos < a_end) { | 96 | 45.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.7k | ++a_pos; | 98 | 45.7k | ++c_pos; | 99 | 45.7k | } | 100 | 623 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 35 | PaddedPODArray<UInt8>& c) { | 90 | 35 | size_t size = a.size(); | 91 | 35 | const A* __restrict a_pos = a.data(); | 92 | 35 | UInt8* __restrict c_pos = c.data(); | 93 | 35 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 147k | while (a_pos < a_end) { | 96 | 147k | *c_pos = Op::apply(*a_pos, b); | 97 | 147k | ++a_pos; | 98 | 147k | ++c_pos; | 99 | 147k | } | 100 | 35 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_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 | 133k | while (a_pos < a_end) { | 96 | 133k | *c_pos = Op::apply(*a_pos, b); | 97 | 133k | ++a_pos; | 98 | 133k | ++c_pos; | 99 | 133k | } | 100 | 39 | } |
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 | 100 | PaddedPODArray<UInt8>& c) { | 90 | 100 | size_t size = a.size(); | 91 | 100 | const A* __restrict a_pos = a.data(); | 92 | 100 | UInt8* __restrict c_pos = c.data(); | 93 | 100 | 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 | 100 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 91 | PaddedPODArray<UInt8>& c) { | 90 | 91 | size_t size = a.size(); | 91 | 91 | const A* __restrict a_pos = a.data(); | 92 | 91 | UInt8* __restrict c_pos = c.data(); | 93 | 91 | 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 | 91 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _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 | 181 | while (a_pos < a_end) { | 96 | 151 | *c_pos = Op::apply(*a_pos, b); | 97 | 151 | ++a_pos; | 98 | 151 | ++c_pos; | 99 | 151 | } | 100 | 30 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 519 | PaddedPODArray<UInt8>& c) { | 90 | 519 | size_t size = a.size(); | 91 | 519 | const A* __restrict a_pos = a.data(); | 92 | 519 | UInt8* __restrict c_pos = c.data(); | 93 | 519 | 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 | 519 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 190 | PaddedPODArray<UInt8>& c) { | 90 | 190 | size_t size = a.size(); | 91 | 190 | const A* __restrict a_pos = a.data(); | 92 | 190 | UInt8* __restrict c_pos = c.data(); | 93 | 190 | 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 | 190 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 86 | PaddedPODArray<UInt8>& c) { | 90 | 86 | size_t size = a.size(); | 91 | 86 | const A* __restrict a_pos = a.data(); | 92 | 86 | UInt8* __restrict c_pos = c.data(); | 93 | 86 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 178 | while (a_pos < a_end) { | 96 | 92 | *c_pos = Op::apply(*a_pos, b); | 97 | 92 | ++a_pos; | 98 | 92 | ++c_pos; | 99 | 92 | } | 100 | 86 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 20 | while (a_pos < a_end) { | 96 | 10 | *c_pos = Op::apply(*a_pos, b); | 97 | 10 | ++a_pos; | 98 | 10 | ++c_pos; | 99 | 10 | } | 100 | 10 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.01k | PaddedPODArray<UInt8>& c) { | 90 | 6.01k | size_t size = a.size(); | 91 | 6.01k | const A* __restrict a_pos = a.data(); | 92 | 6.01k | UInt8* __restrict c_pos = c.data(); | 93 | 6.01k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.11M | while (a_pos < a_end) { | 96 | 9.11M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.11M | ++a_pos; | 98 | 9.11M | ++c_pos; | 99 | 9.11M | } | 100 | 6.01k | } |
_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.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 | 180k | while (a_pos < a_end) { | 96 | 178k | *c_pos = Op::apply(*a_pos, b); | 97 | 178k | ++a_pos; | 98 | 178k | ++c_pos; | 99 | 178k | } | 100 | 2.17k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 3.64k | PaddedPODArray<UInt8>& c) { | 90 | 3.64k | size_t size = a.size(); | 91 | 3.64k | const A* __restrict a_pos = a.data(); | 92 | 3.64k | UInt8* __restrict c_pos = c.data(); | 93 | 3.64k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.77M | while (a_pos < a_end) { | 96 | 1.77M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.77M | ++a_pos; | 98 | 1.77M | ++c_pos; | 99 | 1.77M | } | 100 | 3.64k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 45 | PaddedPODArray<UInt8>& c) { | 90 | 45 | size_t size = a.size(); | 91 | 45 | const A* __restrict a_pos = a.data(); | 92 | 45 | UInt8* __restrict c_pos = c.data(); | 93 | 45 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 100k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 45 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7 | PaddedPODArray<UInt8>& c) { | 90 | 7 | size_t size = a.size(); | 91 | 7 | const A* __restrict a_pos = a.data(); | 92 | 7 | UInt8* __restrict c_pos = c.data(); | 93 | 7 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 21 | while (a_pos < a_end) { | 96 | 14 | *c_pos = Op::apply(*a_pos, b); | 97 | 14 | ++a_pos; | 98 | 14 | ++c_pos; | 99 | 14 | } | 100 | 7 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 4 | *c_pos = Op::apply(*a_pos, b); | 97 | 4 | ++a_pos; | 98 | 4 | ++c_pos; | 99 | 4 | } | 100 | 4 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.02k | PaddedPODArray<UInt8>& c) { | 90 | 2.02k | size_t size = a.size(); | 91 | 2.02k | const A* __restrict a_pos = a.data(); | 92 | 2.02k | UInt8* __restrict c_pos = c.data(); | 93 | 2.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 68.5k | while (a_pos < a_end) { | 96 | 66.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 66.5k | ++a_pos; | 98 | 66.5k | ++c_pos; | 99 | 66.5k | } | 100 | 2.02k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 805 | PaddedPODArray<UInt8>& c) { | 90 | 805 | size_t size = a.size(); | 91 | 805 | const A* __restrict a_pos = a.data(); | 92 | 805 | UInt8* __restrict c_pos = c.data(); | 93 | 805 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 719k | while (a_pos < a_end) { | 96 | 718k | *c_pos = Op::apply(*a_pos, b); | 97 | 718k | ++a_pos; | 98 | 718k | ++c_pos; | 99 | 718k | } | 100 | 805 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 82 | while (a_pos < a_end) { | 96 | 51 | *c_pos = Op::apply(*a_pos, b); | 97 | 51 | ++a_pos; | 98 | 51 | ++c_pos; | 99 | 51 | } | 100 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78 | while (a_pos < a_end) { | 96 | 50 | *c_pos = Op::apply(*a_pos, b); | 97 | 50 | ++a_pos; | 98 | 50 | ++c_pos; | 99 | 50 | } | 100 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 274 | PaddedPODArray<UInt8>& c) { | 90 | 274 | size_t size = a.size(); | 91 | 274 | const A* __restrict a_pos = a.data(); | 92 | 274 | UInt8* __restrict c_pos = c.data(); | 93 | 274 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.98k | while (a_pos < a_end) { | 96 | 1.71k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.71k | ++a_pos; | 98 | 1.71k | ++c_pos; | 99 | 1.71k | } | 100 | 274 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 609 | PaddedPODArray<UInt8>& c) { | 90 | 609 | size_t size = a.size(); | 91 | 609 | const A* __restrict a_pos = a.data(); | 92 | 609 | UInt8* __restrict c_pos = c.data(); | 93 | 609 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.73k | while (a_pos < a_end) { | 96 | 3.12k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.12k | ++a_pos; | 98 | 3.12k | ++c_pos; | 99 | 3.12k | } | 100 | 609 | } |
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 |
101 | | |
102 | 66.6k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 66.6k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 66.6k | } 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 | 62.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 62.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 62.5k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 520 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 520 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 520 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 55 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 55 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 55 | } |
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 | 191 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 191 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 191 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 80 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 70 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 70 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 70 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 84 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 84 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 84 | } |
_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 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 | 91 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 91 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 91 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 1.19k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 1.19k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 1.19k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 54 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 572 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 572 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 572 | } |
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 |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 14 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 57 | 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 | 14 | } _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 _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 7 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 33 | 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 | 7 | } |
_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 | } |
|
115 | | |
116 | 145 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 145 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 451k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 451k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 451k | } |
121 | 145 | } _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 | 53 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 53 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 242k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 242k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 242k | } | 121 | 53 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 49 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 49 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 209k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 209k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 209k | } | 121 | 49 | } |
_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 | } |
|
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 | } 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 _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 |
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 | 428 | PaddedPODArray<UInt8>& c) { |
135 | 428 | size_t size = a_offsets.size(); |
136 | 428 | ColumnString::Offset prev_a_offset = 0; |
137 | 428 | ColumnString::Offset prev_b_offset = 0; |
138 | 428 | const auto* a_pos = a_data.data(); |
139 | 428 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.59k | for (size_t i = 0; i < size; ++i) { |
142 | 1.16k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.16k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.16k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.16k | 0); |
146 | | |
147 | 1.16k | prev_a_offset = a_offsets[i]; |
148 | 1.16k | prev_b_offset = b_offsets[i]; |
149 | 1.16k | } |
150 | 428 | } _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 | 390 | PaddedPODArray<UInt8>& c) { | 135 | 390 | size_t size = a_offsets.size(); | 136 | 390 | ColumnString::Offset prev_a_offset = 0; | 137 | 390 | ColumnString::Offset prev_b_offset = 0; | 138 | 390 | const auto* a_pos = a_data.data(); | 139 | 390 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.31k | for (size_t i = 0; i < size; ++i) { | 142 | 922 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 922 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 922 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 922 | 0); | 146 | | | 147 | 922 | prev_a_offset = a_offsets[i]; | 148 | 922 | prev_b_offset = b_offsets[i]; | 149 | 922 | } | 150 | 390 | } |
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 | 891 | PaddedPODArray<UInt8>& c) { |
157 | 891 | size_t size = a_offsets.size(); |
158 | 891 | ColumnString::Offset prev_a_offset = 0; |
159 | 891 | const auto* a_pos = a_data.data(); |
160 | 891 | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.54M | for (size_t i = 0; i < size; ++i) { |
163 | 1.53M | c[i] = Op::apply( |
164 | 1.53M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.53M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.53M | 0); |
167 | | |
168 | 1.53M | prev_a_offset = a_offsets[i]; |
169 | 1.53M | } |
170 | 891 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 208 | PaddedPODArray<UInt8>& c) { | 157 | 208 | size_t size = a_offsets.size(); | 158 | 208 | ColumnString::Offset prev_a_offset = 0; | 159 | 208 | const auto* a_pos = a_data.data(); | 160 | 208 | 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 | 208 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 108 | PaddedPODArray<UInt8>& c) { | 157 | 108 | size_t size = a_offsets.size(); | 158 | 108 | ColumnString::Offset prev_a_offset = 0; | 159 | 108 | const auto* a_pos = a_data.data(); | 160 | 108 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 105k | for (size_t i = 0; i < size; ++i) { | 163 | 105k | c[i] = Op::apply( | 164 | 105k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 105k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 105k | 0); | 167 | | | 168 | 105k | prev_a_offset = a_offsets[i]; | 169 | 105k | } | 170 | 108 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 239 | PaddedPODArray<UInt8>& c) { | 157 | 239 | size_t size = a_offsets.size(); | 158 | 239 | ColumnString::Offset prev_a_offset = 0; | 159 | 239 | const auto* a_pos = a_data.data(); | 160 | 239 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 500k | for (size_t i = 0; i < size; ++i) { | 163 | 500k | c[i] = Op::apply( | 164 | 500k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 500k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 500k | 0); | 167 | | | 168 | 500k | prev_a_offset = a_offsets[i]; | 169 | 500k | } | 170 | 239 | } |
_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 | 575k | for (size_t i = 0; i < size; ++i) { | 163 | 574k | c[i] = Op::apply( | 164 | 574k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 574k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 574k | 0); | 167 | | | 168 | 574k | prev_a_offset = a_offsets[i]; | 169 | 574k | } | 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 | 54 | PaddedPODArray<UInt8>& c) { |
177 | 54 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 54 | a_data, a_size, c); |
179 | 54 | } 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 | 48 | PaddedPODArray<UInt8>& c) { | 177 | 48 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 48 | a_data, a_size, c); | 179 | 48 | } |
_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 | 421 | PaddedPODArray<UInt8>& c) { |
189 | 421 | size_t size = a_offsets.size(); |
190 | 421 | ColumnString::Offset prev_a_offset = 0; |
191 | 421 | ColumnString::Offset prev_b_offset = 0; |
192 | 421 | const auto* a_pos = a_data.data(); |
193 | 421 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 1.35k | for (size_t i = 0; i < size; ++i) { |
196 | 938 | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 938 | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 938 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 938 | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 938 | prev_a_offset = a_offsets[i]; |
203 | 938 | prev_b_offset = b_offsets[i]; |
204 | 938 | } |
205 | 421 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 411 | PaddedPODArray<UInt8>& c) { | 189 | 411 | size_t size = a_offsets.size(); | 190 | 411 | ColumnString::Offset prev_a_offset = 0; | 191 | 411 | ColumnString::Offset prev_b_offset = 0; | 192 | 411 | const auto* a_pos = a_data.data(); | 193 | 411 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 1.32k | for (size_t i = 0; i < size; ++i) { | 196 | 917 | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 917 | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 917 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 917 | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 917 | prev_a_offset = a_offsets[i]; | 203 | 917 | prev_b_offset = b_offsets[i]; | 204 | 917 | } | 205 | 411 | } |
_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.2k | PaddedPODArray<UInt8>& c) { |
212 | 20.2k | size_t size = a_offsets.size(); |
213 | 20.2k | 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.2k | } else { |
223 | 20.2k | ColumnString::Offset prev_a_offset = 0; |
224 | 20.2k | const auto* a_pos = a_data.data(); |
225 | 20.2k | const auto* b_pos = b_data.data(); |
226 | 8.97M | for (size_t i = 0; i < size; ++i) { |
227 | 8.95M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 8.95M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 8.95M | b_pos, b_size); |
230 | 8.95M | prev_a_offset = a_offsets[i]; |
231 | 8.95M | } |
232 | 20.2k | } |
233 | 20.2k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 20.0k | PaddedPODArray<UInt8>& c) { | 212 | 20.0k | size_t size = a_offsets.size(); | 213 | 20.0k | if (b_size == 0) { | 214 | 0 | auto* __restrict data = c.data(); | 215 | 0 | auto* __restrict offsets = a_offsets.data(); | 216 | |
| 217 | 0 | ColumnString::Offset prev_a_offset = 0; | 218 | 0 | for (size_t i = 0; i < size; ++i) { | 219 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 0 | prev_a_offset = offsets[i]; | 221 | 0 | } | 222 | 20.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 | 8.91M | for (size_t i = 0; i < size; ++i) { | 227 | 8.89M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 8.89M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 8.89M | b_pos, b_size); | 230 | 8.89M | prev_a_offset = a_offsets[i]; | 231 | 8.89M | } | 232 | 20.0k | } | 233 | 20.0k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 123 | PaddedPODArray<UInt8>& c) { | 212 | 123 | size_t size = a_offsets.size(); | 213 | 123 | 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 | 122 | } else { | 223 | 122 | ColumnString::Offset prev_a_offset = 0; | 224 | 122 | const auto* a_pos = a_data.data(); | 225 | 122 | const auto* b_pos = b_data.data(); | 226 | 59.6k | for (size_t i = 0; i < size; ++i) { | 227 | 59.5k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 59.5k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 59.5k | b_pos, b_size); | 230 | 59.5k | prev_a_offset = a_offsets[i]; | 231 | 59.5k | } | 232 | 122 | } | 233 | 123 | } |
|
234 | | |
235 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
236 | | ColumnString::Offset a_size, |
237 | | const ColumnString::Chars& b_data, |
238 | | const ColumnString::Offsets& b_offsets, |
239 | 16 | PaddedPODArray<UInt8>& c) { |
240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 16 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 16 | PaddedPODArray<UInt8>& c) { | 240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 16 | } |
Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
242 | | }; |
243 | | |
244 | | template <PrimitiveType PT> |
245 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
246 | | |
247 | | template <PrimitiveType PT> |
248 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
249 | | |
250 | | struct NameEquals { |
251 | | static constexpr auto name = "eq"; |
252 | | }; |
253 | | struct NameNotEquals { |
254 | | static constexpr auto name = "ne"; |
255 | | }; |
256 | | struct NameLess { |
257 | | static constexpr auto name = "lt"; |
258 | | }; |
259 | | struct NameGreater { |
260 | | static constexpr auto name = "gt"; |
261 | | }; |
262 | | struct NameLessOrEquals { |
263 | | static constexpr auto name = "le"; |
264 | | }; |
265 | | struct NameGreaterOrEquals { |
266 | | static constexpr auto name = "ge"; |
267 | | }; |
268 | | |
269 | | namespace comparison_zonemap_detail { |
270 | | enum class Op { |
271 | | EQ, |
272 | | NE, |
273 | | LT, |
274 | | LE, |
275 | | GT, |
276 | | GE, |
277 | | }; |
278 | | |
279 | 19 | inline Op symmetric_op(Op op) { |
280 | 19 | switch (op) { |
281 | 0 | case Op::EQ: |
282 | 0 | case Op::NE: |
283 | 0 | return op; |
284 | 11 | case Op::LT: |
285 | 11 | return Op::GT; |
286 | 6 | case Op::LE: |
287 | 6 | return Op::GE; |
288 | 0 | case Op::GT: |
289 | 0 | return Op::LT; |
290 | 2 | case Op::GE: |
291 | 2 | return Op::LE; |
292 | 19 | } |
293 | 0 | __builtin_unreachable(); |
294 | 19 | } |
295 | | |
296 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
297 | 3.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 | 45 | return unsupported_zonemap_filter(ctx); |
308 | 45 | } |
309 | 3.05k | const auto& zone_map = *zone_map_ptr; |
310 | 3.05k | if (!zone_map.has_not_null) { |
311 | 57 | return ZoneMapFilterResult::kNoMatch; |
312 | 57 | } |
313 | 3.00k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
314 | 114 | return unsupported_zonemap_filter(ctx); |
315 | 114 | } |
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.83k | switch (effective_op) { |
329 | 1.57k | case Op::EQ: |
330 | 1.57k | return literal < zone_map.min_value || zone_map.max_value < literal |
331 | 1.57k | ? ZoneMapFilterResult::kNoMatch |
332 | 1.57k | : ZoneMapFilterResult::kMayMatch; |
333 | 103 | case Op::NE: |
334 | 103 | return zone_map.min_value == literal && zone_map.max_value == literal |
335 | 103 | ? ZoneMapFilterResult::kNoMatch |
336 | 103 | : ZoneMapFilterResult::kMayMatch; |
337 | 368 | case Op::LT: |
338 | 368 | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
339 | 368 | : ZoneMapFilterResult::kMayMatch; |
340 | 282 | case Op::LE: |
341 | 282 | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
342 | 282 | : ZoneMapFilterResult::kMayMatch; |
343 | 252 | case Op::GT: |
344 | 252 | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
345 | 252 | : ZoneMapFilterResult::kMayMatch; |
346 | 271 | case Op::GE: |
347 | 271 | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
348 | 271 | : ZoneMapFilterResult::kMayMatch; |
349 | 2.83k | } |
350 | | |
351 | | // keep this to avoid compile failure with g++. |
352 | 0 | __builtin_unreachable(); |
353 | 2.83k | } |
354 | | |
355 | 33.2k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
356 | 33.2k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
357 | 33.2k | if (!slot_literal.has_value()) { |
358 | 18.4k | return false; |
359 | 18.4k | } |
360 | | |
361 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
362 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
363 | | // shape here before evaluate_zonemap_filter is called. |
364 | 14.7k | if (slot_literal->literal.is_null()) { |
365 | 4 | return false; |
366 | 4 | } |
367 | | |
368 | 14.7k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
369 | 14.7k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
370 | 14.7k | 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.7k | return true; |
378 | 14.7k | } |
379 | | |
380 | 0 | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
381 | 0 | if (op != Op::EQ || !can_evaluate(arguments)) { |
382 | 0 | return false; |
383 | 0 | } |
384 | 0 | const auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 0 | DORIS_CHECK(slot_literal.has_value()); |
386 | 0 | // Bloom membership cannot disprove Doris NaN equality across different physical encodings. |
387 | 0 | return !slot_literal->literal.is_nan(); |
388 | 0 | } |
389 | | |
390 | 27 | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
391 | 27 | switch (op) { |
392 | 8 | case Op::EQ: |
393 | 8 | return value == literal; |
394 | 0 | case Op::NE: |
395 | 0 | return value != literal; |
396 | 5 | case Op::LT: |
397 | 5 | return value < literal; |
398 | 0 | case Op::LE: |
399 | 0 | return value <= literal; |
400 | 14 | case Op::GT: |
401 | 14 | return value > literal; |
402 | 0 | case Op::GE: |
403 | 0 | return value >= literal; |
404 | 27 | } |
405 | 0 | __builtin_unreachable(); |
406 | 27 | } |
407 | | |
408 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
409 | 14 | const VExprSPtrs& arguments, Op op) { |
410 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
411 | 14 | DORIS_CHECK(slot_literal.has_value()); |
412 | 14 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
413 | 14 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
414 | 0 | return ZoneMapFilterResult::kUnsupported; |
415 | 0 | } |
416 | 14 | DORIS_CHECK( |
417 | 14 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
418 | 14 | if (slot_literal->literal.is_null()) { |
419 | 0 | return ZoneMapFilterResult::kUnsupported; |
420 | 0 | } |
421 | 14 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
422 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
423 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
424 | 14 | return std::ranges::any_of(dictionary->values, |
425 | 27 | [&](const Field& value) { |
426 | 27 | return dictionary_value_matches(value, slot_literal->literal, |
427 | 27 | effective_op); |
428 | 27 | }) |
429 | 14 | ? ZoneMapFilterResult::kMayMatch |
430 | 14 | : ZoneMapFilterResult::kNoMatch; |
431 | 14 | } |
432 | | |
433 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
434 | 19 | const VExprSPtrs& arguments, Op op) { |
435 | 19 | DORIS_CHECK(op == Op::EQ); |
436 | 19 | auto slot_literal = expr_zonemap::extract_bloom_filter_slot_and_literal(arguments); |
437 | 19 | DORIS_CHECK(slot_literal.has_value()); |
438 | 19 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
439 | 19 | } |
440 | | |
441 | 37.1k | inline std::optional<Op> op_from_name(std::string_view name) { |
442 | 37.1k | if (name == NameEquals::name) { |
443 | 17.8k | return Op::EQ; |
444 | 17.8k | } |
445 | 19.2k | if (name == NameNotEquals::name) { |
446 | 1.47k | return Op::NE; |
447 | 1.47k | } |
448 | 17.8k | if (name == NameLess::name) { |
449 | 4.89k | return Op::LT; |
450 | 4.89k | } |
451 | 12.9k | if (name == NameLessOrEquals::name) { |
452 | 2.40k | return Op::LE; |
453 | 2.40k | } |
454 | 10.5k | if (name == NameGreater::name) { |
455 | 5.59k | return Op::GT; |
456 | 5.59k | } |
457 | 5.16k | if (name == NameGreaterOrEquals::name) { |
458 | 5.16k | return Op::GE; |
459 | 5.16k | } |
460 | 18.4E | return std::nullopt; |
461 | 4.93k | } |
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 | 304k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 468 | 6.79k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 468 | 9.56k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 468 | 3.86k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 468 | 11.2k | 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>(); } |
|
469 | | |
470 | 304k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 470 | 6.80k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 470 | 9.55k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 470 | 3.87k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 470 | 11.1k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 470 | 271k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 470 | 1.25k | FunctionComparison() = default; |
|
471 | | |
472 | 685k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 472 | 2.24k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 472 | 2.25k | 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 | 1.11k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 472 | 677k | 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; } |
|
473 | | |
474 | | private: |
475 | | template <PrimitiveType PT> |
476 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
477 | 122k | const ColumnPtr& col_right_ptr) const { |
478 | 122k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
479 | 122k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
480 | | |
481 | 122k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
482 | 122k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
483 | | |
484 | 122k | DCHECK(!(left_is_const && right_is_const)); |
485 | | |
486 | 122k | if (!left_is_const && !right_is_const) { |
487 | 13.2k | auto col_res = ColumnUInt8::create(); |
488 | | |
489 | 13.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
490 | 13.2k | vec_res.resize(col_left->get_data().size()); |
491 | 13.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
492 | 13.2k | typename PrimitiveTypeTraits<PT>::CppType, |
493 | 13.2k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
494 | 13.2k | vec_res); |
495 | | |
496 | 13.2k | block.replace_by_position(result, std::move(col_res)); |
497 | 109k | } else if (!left_is_const && right_is_const) { |
498 | 43.1k | auto col_res = ColumnUInt8::create(); |
499 | | |
500 | 43.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
501 | 43.1k | vec_res.resize(col_left->size()); |
502 | 43.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
503 | 43.1k | typename PrimitiveTypeTraits<PT>::CppType, |
504 | 43.1k | Op<PT>>::vector_constant(col_left->get_data(), |
505 | 43.1k | col_right->get_element(0), vec_res); |
506 | | |
507 | 43.1k | block.replace_by_position(result, std::move(col_res)); |
508 | 66.6k | } else if (left_is_const && !right_is_const) { |
509 | 66.6k | auto col_res = ColumnUInt8::create(); |
510 | | |
511 | 66.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
512 | 66.6k | vec_res.resize(col_right->size()); |
513 | 66.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
514 | 66.6k | typename PrimitiveTypeTraits<PT>::CppType, |
515 | 66.6k | Op<PT>>::constant_vector(col_left->get_element(0), |
516 | 66.6k | col_right->get_data(), vec_res); |
517 | | |
518 | 66.6k | block.replace_by_position(result, std::move(col_res)); |
519 | 66.6k | } |
520 | 122k | return Status::OK(); |
521 | 122k | } 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.20k | const ColumnPtr& col_right_ptr) const { | 478 | 1.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.20k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.20k | if (!left_is_const && !right_is_const) { | 487 | 1.16k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.16k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.16k | vec_res.resize(col_left->get_data().size()); | 491 | 1.16k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.16k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.16k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.16k | vec_res); | 495 | | | 496 | 1.16k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.16k | } 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.20k | return Status::OK(); | 521 | 1.20k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_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 | 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 | 2 | } 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 | 2 | return Status::OK(); | 521 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 67 | const ColumnPtr& col_right_ptr) const { | 478 | 67 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 67 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 67 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 67 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 67 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 67 | if (!left_is_const && !right_is_const) { | 487 | 33 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 33 | vec_res.resize(col_left->get_data().size()); | 491 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 33 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 33 | vec_res); | 495 | | | 496 | 33 | block.replace_by_position(result, std::move(col_res)); | 497 | 34 | } else if (!left_is_const && right_is_const) { | 498 | 34 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 34 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 34 | vec_res.resize(col_left->size()); | 502 | 34 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 34 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 34 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 34 | col_right->get_element(0), vec_res); | 506 | | | 507 | 34 | block.replace_by_position(result, std::move(col_res)); | 508 | 34 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 67 | return Status::OK(); | 521 | 67 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.55k | const ColumnPtr& col_right_ptr) const { | 478 | 1.55k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.55k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.55k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.55k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.55k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.55k | if (!left_is_const && !right_is_const) { | 487 | 65 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 65 | vec_res.resize(col_left->get_data().size()); | 491 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 65 | vec_res); | 495 | | | 496 | 65 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.49k | } else if (!left_is_const && right_is_const) { | 498 | 1.25k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.25k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.25k | vec_res.resize(col_left->size()); | 502 | 1.25k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.25k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.25k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.25k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.25k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.25k | } 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.55k | return Status::OK(); | 521 | 1.55k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.38k | const ColumnPtr& col_right_ptr) const { | 478 | 2.38k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.38k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.38k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.38k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.38k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.38k | 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.25k | } else if (!left_is_const && right_is_const) { | 498 | 2.01k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.01k | vec_res.resize(col_left->size()); | 502 | 2.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.01k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.01k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.01k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.01k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.01k | } else if (left_is_const && !right_is_const) { | 509 | 239 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 239 | vec_res.resize(col_right->size()); | 513 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 239 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 239 | col_right->get_data(), vec_res); | 517 | | | 518 | 239 | block.replace_by_position(result, std::move(col_res)); | 519 | 239 | } | 520 | 2.38k | return Status::OK(); | 521 | 2.38k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 67.9k | const ColumnPtr& col_right_ptr) const { | 478 | 67.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 67.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 67.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 67.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 67.9k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 67.9k | if (!left_is_const && !right_is_const) { | 487 | 58 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 58 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 58 | vec_res.resize(col_left->get_data().size()); | 491 | 58 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 58 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 58 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 58 | vec_res); | 495 | | | 496 | 58 | block.replace_by_position(result, std::move(col_res)); | 497 | 67.8k | } else if (!left_is_const && right_is_const) { | 498 | 5.35k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 5.35k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 5.35k | vec_res.resize(col_left->size()); | 502 | 5.35k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 5.35k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 5.35k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 5.35k | col_right->get_element(0), vec_res); | 506 | | | 507 | 5.35k | block.replace_by_position(result, std::move(col_res)); | 508 | 62.5k | } else if (left_is_const && !right_is_const) { | 509 | 62.5k | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 62.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 62.5k | vec_res.resize(col_right->size()); | 513 | 62.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 62.5k | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 62.5k | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 62.5k | col_right->get_data(), vec_res); | 517 | | | 518 | 62.5k | block.replace_by_position(result, std::move(col_res)); | 519 | 62.5k | } | 520 | 67.9k | return Status::OK(); | 521 | 67.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.69k | const ColumnPtr& col_right_ptr) const { | 478 | 2.69k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.69k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.69k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.69k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.69k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.69k | if (!left_is_const && !right_is_const) { | 487 | 332 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 332 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 332 | vec_res.resize(col_left->get_data().size()); | 491 | 332 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 332 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 332 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 332 | vec_res); | 495 | | | 496 | 332 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.36k | } else if (!left_is_const && right_is_const) { | 498 | 1.84k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.84k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.84k | vec_res.resize(col_left->size()); | 502 | 1.84k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.84k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.84k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.84k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.84k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.84k | } else if (left_is_const && !right_is_const) { | 509 | 520 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 520 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 520 | vec_res.resize(col_right->size()); | 513 | 520 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 520 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 520 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 520 | col_right->get_data(), vec_res); | 517 | | | 518 | 520 | block.replace_by_position(result, std::move(col_res)); | 519 | 520 | } | 520 | 2.69k | return Status::OK(); | 521 | 2.69k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 256 | const ColumnPtr& col_right_ptr) const { | 478 | 256 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 256 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 256 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 256 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 256 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 256 | 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 | 254 | } 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 | 55 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 55 | vec_res.resize(col_right->size()); | 513 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 55 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 55 | col_right->get_data(), vec_res); | 517 | | | 518 | 55 | block.replace_by_position(result, std::move(col_res)); | 519 | 55 | } | 520 | 256 | return Status::OK(); | 521 | 256 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 4 | const ColumnPtr& col_right_ptr) const { | 478 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 4 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 4 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 3 | } else if (!left_is_const && right_is_const) { | 498 | 3 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 3 | vec_res.resize(col_left->size()); | 502 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 3 | col_right->get_element(0), vec_res); | 506 | | | 507 | 3 | block.replace_by_position(result, std::move(col_res)); | 508 | 3 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 4 | return Status::OK(); | 521 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 611 | const ColumnPtr& col_right_ptr) const { | 478 | 611 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 611 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 611 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 611 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 611 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 611 | if (!left_is_const && !right_is_const) { | 487 | 104 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 104 | vec_res.resize(col_left->get_data().size()); | 491 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 104 | vec_res); | 495 | | | 496 | 104 | block.replace_by_position(result, std::move(col_res)); | 497 | 507 | } else if (!left_is_const && right_is_const) { | 498 | 507 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 507 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 507 | vec_res.resize(col_left->size()); | 502 | 507 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 507 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 507 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 507 | col_right->get_element(0), vec_res); | 506 | | | 507 | 507 | block.replace_by_position(result, std::move(col_res)); | 508 | 507 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 611 | return Status::OK(); | 521 | 611 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 219 | const ColumnPtr& col_right_ptr) const { | 478 | 219 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 219 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 219 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 219 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 219 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 219 | 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 | 199 | } else if (!left_is_const && right_is_const) { | 498 | 198 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 198 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 198 | vec_res.resize(col_left->size()); | 502 | 198 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 198 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 198 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 198 | col_right->get_element(0), vec_res); | 506 | | | 507 | 198 | block.replace_by_position(result, std::move(col_res)); | 508 | 198 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 219 | return Status::OK(); | 521 | 219 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 540 | const ColumnPtr& col_right_ptr) const { | 478 | 540 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 540 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 540 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 540 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 540 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 540 | if (!left_is_const && !right_is_const) { | 487 | 31 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 31 | vec_res.resize(col_left->get_data().size()); | 491 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 31 | vec_res); | 495 | | | 496 | 31 | block.replace_by_position(result, std::move(col_res)); | 497 | 510 | } else if (!left_is_const && right_is_const) { | 498 | 510 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 510 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 510 | vec_res.resize(col_left->size()); | 502 | 510 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 510 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 510 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 510 | col_right->get_element(0), vec_res); | 506 | | | 507 | 510 | 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 | 540 | return Status::OK(); | 521 | 540 | } |
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 | 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 | 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 | 27 | } else if (!left_is_const && right_is_const) { | 498 | 27 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 27 | vec_res.resize(col_left->size()); | 502 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 27 | col_right->get_element(0), vec_res); | 506 | | | 507 | 27 | block.replace_by_position(result, std::move(col_res)); | 508 | 27 | } 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 462 | const ColumnPtr& col_right_ptr) const { | 478 | 462 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 462 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 462 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 462 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 462 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 462 | 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 | 461 | } else if (!left_is_const && right_is_const) { | 498 | 455 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 455 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 455 | vec_res.resize(col_left->size()); | 502 | 455 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 455 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 455 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 455 | col_right->get_element(0), vec_res); | 506 | | | 507 | 455 | block.replace_by_position(result, std::move(col_res)); | 508 | 455 | } 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 | 462 | return Status::OK(); | 521 | 462 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 119 | const ColumnPtr& col_right_ptr) const { | 478 | 119 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 119 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 119 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 119 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 119 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 119 | 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 | 113 | } else if (!left_is_const && right_is_const) { | 498 | 113 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 113 | vec_res.resize(col_left->size()); | 502 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 113 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 113 | col_right->get_element(0), vec_res); | 506 | | | 507 | 113 | block.replace_by_position(result, std::move(col_res)); | 508 | 113 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 119 | return Status::OK(); | 521 | 119 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 402 | const ColumnPtr& col_right_ptr) const { | 478 | 402 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 402 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 402 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 402 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 402 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 402 | 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 | 43 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 43 | vec_res.resize(col_left->size()); | 502 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 43 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 43 | col_right->get_element(0), vec_res); | 506 | | | 507 | 43 | block.replace_by_position(result, std::move(col_res)); | 508 | 43 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 402 | return Status::OK(); | 521 | 402 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1 | const ColumnPtr& col_right_ptr) const { | 478 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 0 | auto col_res = ColumnUInt8::create(); | 499 | |
| 500 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 0 | vec_res.resize(col_left->size()); | 502 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 0 | col_right->get_element(0), vec_res); | 506 | |
| 507 | 0 | block.replace_by_position(result, std::move(col_res)); | 508 | 0 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 1 | return Status::OK(); | 521 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 74 | const ColumnPtr& col_right_ptr) const { | 478 | 74 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 74 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 74 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 74 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 74 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 74 | 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 | 74 | } 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 | 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 | 74 | return Status::OK(); | 521 | 74 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_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 | 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 | 98 | } else if (!left_is_const && right_is_const) { | 498 | 98 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 98 | vec_res.resize(col_left->size()); | 502 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 98 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 98 | col_right->get_element(0), vec_res); | 506 | | | 507 | 98 | block.replace_by_position(result, std::move(col_res)); | 508 | 98 | } 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.02k | const ColumnPtr& col_right_ptr) const { | 478 | 1.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.02k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.02k | if (!left_is_const && !right_is_const) { | 487 | 19 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 19 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 19 | vec_res.resize(col_left->get_data().size()); | 491 | 19 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 19 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 19 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 19 | vec_res); | 495 | | | 496 | 19 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.00k | } else if (!left_is_const && right_is_const) { | 498 | 1.00k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.00k | vec_res.resize(col_left->size()); | 502 | 1.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.00k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.00k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.00k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.00k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.00k | } 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.02k | return Status::OK(); | 521 | 1.02k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 796 | const ColumnPtr& col_right_ptr) const { | 478 | 796 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 796 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 796 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 796 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 796 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 796 | 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 | 780 | } else if (!left_is_const && right_is_const) { | 498 | 780 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 780 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 780 | vec_res.resize(col_left->size()); | 502 | 780 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 780 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 780 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 780 | col_right->get_element(0), vec_res); | 506 | | | 507 | 780 | block.replace_by_position(result, std::move(col_res)); | 508 | 780 | } 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 | 796 | return Status::OK(); | 521 | 796 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 35 | const ColumnPtr& col_right_ptr) const { | 478 | 35 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 35 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 35 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 35 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 35 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 35 | 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 | 35 | } else if (!left_is_const && right_is_const) { | 498 | 35 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 35 | vec_res.resize(col_left->size()); | 502 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 35 | col_right->get_element(0), vec_res); | 506 | | | 507 | 35 | block.replace_by_position(result, std::move(col_res)); | 508 | 35 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 35 | return Status::OK(); | 521 | 35 | } |
_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 | 124 | const ColumnPtr& col_right_ptr) const { | 478 | 124 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 124 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 124 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 124 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 124 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 124 | if (!left_is_const && !right_is_const) { | 487 | 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 | 100 | } else if (!left_is_const && right_is_const) { | 498 | 100 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 100 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 100 | vec_res.resize(col_left->size()); | 502 | 100 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 100 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 100 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 100 | col_right->get_element(0), vec_res); | 506 | | | 507 | 100 | block.replace_by_position(result, std::move(col_res)); | 508 | 100 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 124 | return Status::OK(); | 521 | 124 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 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.18k | const ColumnPtr& col_right_ptr) const { | 478 | 2.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.18k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.18k | if (!left_is_const && !right_is_const) { | 487 | 1.81k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1.81k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1.81k | vec_res.resize(col_left->get_data().size()); | 491 | 1.81k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1.81k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1.81k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1.81k | vec_res); | 495 | | | 496 | 1.81k | block.replace_by_position(result, std::move(col_res)); | 497 | 1.81k | } else if (!left_is_const && right_is_const) { | 498 | 373 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 373 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 373 | vec_res.resize(col_left->size()); | 502 | 373 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 373 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 373 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 373 | col_right->get_element(0), vec_res); | 506 | | | 507 | 373 | 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.18k | return Status::OK(); | 521 | 2.18k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 294 | const ColumnPtr& col_right_ptr) const { | 478 | 294 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 294 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 294 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 294 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 294 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 294 | if (!left_is_const && !right_is_const) { | 487 | 235 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 235 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 235 | vec_res.resize(col_left->get_data().size()); | 491 | 235 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 235 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 235 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 235 | vec_res); | 495 | | | 496 | 235 | block.replace_by_position(result, std::move(col_res)); | 497 | 235 | } else if (!left_is_const && right_is_const) { | 498 | 59 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 59 | vec_res.resize(col_left->size()); | 502 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 59 | col_right->get_element(0), vec_res); | 506 | | | 507 | 59 | block.replace_by_position(result, std::move(col_res)); | 508 | 59 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 294 | return Status::OK(); | 521 | 294 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 149 | const ColumnPtr& col_right_ptr) const { | 478 | 149 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 149 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 149 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 149 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 149 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 149 | 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 | 110 | } 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 | 149 | return Status::OK(); | 521 | 149 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2 | const ColumnPtr& col_right_ptr) const { | 478 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 1 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1 | vec_res.resize(col_left->size()); | 502 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1 | col_right->get_element(0), vec_res); | 506 | | | 507 | 1 | block.replace_by_position(result, std::move(col_res)); | 508 | 1 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 2 | return Status::OK(); | 521 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.40k | const ColumnPtr& col_right_ptr) const { | 478 | 2.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.40k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.40k | if (!left_is_const && !right_is_const) { | 487 | 207 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 207 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 207 | vec_res.resize(col_left->get_data().size()); | 491 | 207 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 207 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 207 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 207 | vec_res); | 495 | | | 496 | 207 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.20k | } else if (!left_is_const && right_is_const) { | 498 | 1.93k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.93k | vec_res.resize(col_left->size()); | 502 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.93k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.93k | } else if (left_is_const && !right_is_const) { | 509 | 264 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 264 | vec_res.resize(col_right->size()); | 513 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 264 | col_right->get_data(), vec_res); | 517 | | | 518 | 264 | block.replace_by_position(result, std::move(col_res)); | 519 | 264 | } | 520 | 2.40k | return Status::OK(); | 521 | 2.40k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 165 | const ColumnPtr& col_right_ptr) const { | 478 | 165 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 165 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 165 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 165 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 165 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 165 | if (!left_is_const && !right_is_const) { | 487 | 151 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 151 | vec_res.resize(col_left->get_data().size()); | 491 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 151 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 151 | vec_res); | 495 | | | 496 | 151 | block.replace_by_position(result, std::move(col_res)); | 497 | 151 | } 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 | 165 | return Status::OK(); | 521 | 165 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.97k | const ColumnPtr& col_right_ptr) const { | 478 | 1.97k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.97k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.97k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.97k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.97k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.97k | if (!left_is_const && !right_is_const) { | 487 | 874 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 874 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 874 | vec_res.resize(col_left->get_data().size()); | 491 | 874 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 874 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 874 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 874 | vec_res); | 495 | | | 496 | 874 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.10k | } else if (!left_is_const && right_is_const) { | 498 | 911 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 911 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 911 | vec_res.resize(col_left->size()); | 502 | 911 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 911 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 911 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 911 | col_right->get_element(0), vec_res); | 506 | | | 507 | 911 | block.replace_by_position(result, std::move(col_res)); | 508 | 911 | } else if (left_is_const && !right_is_const) { | 509 | 191 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 191 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 191 | vec_res.resize(col_right->size()); | 513 | 191 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 191 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 191 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 191 | col_right->get_data(), vec_res); | 517 | | | 518 | 191 | block.replace_by_position(result, std::move(col_res)); | 519 | 191 | } | 520 | 1.97k | return Status::OK(); | 521 | 1.97k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 986 | const ColumnPtr& col_right_ptr) const { | 478 | 986 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 986 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 986 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 986 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 986 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 986 | if (!left_is_const && !right_is_const) { | 487 | 338 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 338 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 338 | vec_res.resize(col_left->get_data().size()); | 491 | 338 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 338 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 338 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 338 | vec_res); | 495 | | | 496 | 338 | block.replace_by_position(result, std::move(col_res)); | 497 | 648 | } else if (!left_is_const && right_is_const) { | 498 | 568 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 568 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 568 | vec_res.resize(col_left->size()); | 502 | 568 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 568 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 568 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 568 | col_right->get_element(0), vec_res); | 506 | | | 507 | 568 | block.replace_by_position(result, std::move(col_res)); | 508 | 568 | } else if (left_is_const && !right_is_const) { | 509 | 80 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 80 | vec_res.resize(col_right->size()); | 513 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 80 | col_right->get_data(), vec_res); | 517 | | | 518 | 80 | block.replace_by_position(result, std::move(col_res)); | 519 | 80 | } | 520 | 986 | return Status::OK(); | 521 | 986 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 260 | const ColumnPtr& col_right_ptr) const { | 478 | 260 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 260 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 260 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 260 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 260 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 260 | 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 | 57 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 57 | vec_res.resize(col_left->size()); | 502 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 57 | col_right->get_element(0), vec_res); | 506 | | | 507 | 57 | block.replace_by_position(result, std::move(col_res)); | 508 | 70 | } else if (left_is_const && !right_is_const) { | 509 | 70 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 70 | vec_res.resize(col_right->size()); | 513 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 70 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 70 | col_right->get_data(), vec_res); | 517 | | | 518 | 70 | block.replace_by_position(result, std::move(col_res)); | 519 | 70 | } | 520 | 260 | return Status::OK(); | 521 | 260 | } |
_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 | 129 | const ColumnPtr& col_right_ptr) const { | 478 | 129 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 129 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 129 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 129 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 129 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 129 | 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 | 129 | } 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 | 129 | return Status::OK(); | 521 | 129 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 1.15k | const ColumnPtr& col_right_ptr) const { | 478 | 1.15k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 1.15k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 1.15k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 1.15k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 1.15k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 1.15k | if (!left_is_const && !right_is_const) { | 487 | 140 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 140 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 140 | vec_res.resize(col_left->get_data().size()); | 491 | 140 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 140 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 140 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 140 | vec_res); | 495 | | | 496 | 140 | block.replace_by_position(result, std::move(col_res)); | 497 | 1.01k | } else if (!left_is_const && right_is_const) { | 498 | 1.01k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1.01k | vec_res.resize(col_left->size()); | 502 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1.01k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1.01k | col_right->get_element(0), vec_res); | 506 | | | 507 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 508 | 1.01k | } 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.15k | return Status::OK(); | 521 | 1.15k | } |
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 | 35 | const ColumnPtr& col_right_ptr) const { | 478 | 35 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 35 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 35 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 35 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 35 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 35 | 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 | 35 | } else if (!left_is_const && right_is_const) { | 498 | 35 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 35 | vec_res.resize(col_left->size()); | 502 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 35 | col_right->get_element(0), vec_res); | 506 | | | 507 | 35 | block.replace_by_position(result, std::move(col_res)); | 508 | 35 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 35 | return Status::OK(); | 521 | 35 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 564 | const ColumnPtr& col_right_ptr) const { | 478 | 564 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 564 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 564 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 564 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 564 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 564 | if (!left_is_const && !right_is_const) { | 487 | 385 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 385 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 385 | vec_res.resize(col_left->get_data().size()); | 491 | 385 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 385 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 385 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 385 | vec_res); | 495 | | | 496 | 385 | block.replace_by_position(result, std::move(col_res)); | 497 | 385 | } else if (!left_is_const && right_is_const) { | 498 | 172 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 172 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 172 | vec_res.resize(col_left->size()); | 502 | 172 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 172 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 172 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 172 | col_right->get_element(0), vec_res); | 506 | | | 507 | 172 | block.replace_by_position(result, std::move(col_res)); | 508 | 172 | } 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 | 564 | return Status::OK(); | 521 | 564 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 55 | const ColumnPtr& col_right_ptr) const { | 478 | 55 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 55 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 55 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 55 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 55 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 55 | if (!left_is_const && !right_is_const) { | 487 | 0 | auto col_res = ColumnUInt8::create(); | 488 | |
| 489 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 0 | vec_res.resize(col_left->get_data().size()); | 491 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 0 | vec_res); | 495 | |
| 496 | 0 | block.replace_by_position(result, std::move(col_res)); | 497 | 55 | } else if (!left_is_const && right_is_const) { | 498 | 55 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 55 | vec_res.resize(col_left->size()); | 502 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 55 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 55 | col_right->get_element(0), vec_res); | 506 | | | 507 | 55 | block.replace_by_position(result, std::move(col_res)); | 508 | 55 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 55 | return Status::OK(); | 521 | 55 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 59 | const ColumnPtr& col_right_ptr) const { | 478 | 59 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 59 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 59 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 59 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 59 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 59 | if (!left_is_const && !right_is_const) { | 487 | 24 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 24 | vec_res.resize(col_left->get_data().size()); | 491 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 24 | vec_res); | 495 | | | 496 | 24 | block.replace_by_position(result, std::move(col_res)); | 497 | 35 | } else if (!left_is_const && right_is_const) { | 498 | 35 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 35 | vec_res.resize(col_left->size()); | 502 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 35 | col_right->get_element(0), vec_res); | 506 | | | 507 | 35 | block.replace_by_position(result, std::move(col_res)); | 508 | 35 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 59 | return Status::OK(); | 521 | 59 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2 | const ColumnPtr& col_right_ptr) const { | 478 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2 | if (!left_is_const && !right_is_const) { | 487 | 1 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 1 | vec_res.resize(col_left->get_data().size()); | 491 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 1 | vec_res); | 495 | | | 496 | 1 | block.replace_by_position(result, std::move(col_res)); | 497 | 1 | } else if (!left_is_const && right_is_const) { | 498 | 1 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 1 | vec_res.resize(col_left->size()); | 502 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 1 | col_right->get_element(0), vec_res); | 506 | | | 507 | 1 | block.replace_by_position(result, std::move(col_res)); | 508 | 1 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 2 | return Status::OK(); | 521 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 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 | 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 | 101 | } else if (!left_is_const && right_is_const) { | 498 | 101 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 101 | vec_res.resize(col_left->size()); | 502 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 101 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 101 | col_right->get_element(0), vec_res); | 506 | | | 507 | 101 | block.replace_by_position(result, std::move(col_res)); | 508 | 101 | } 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_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 119 | const ColumnPtr& col_right_ptr) const { | 478 | 119 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 119 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 119 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 119 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 119 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 119 | 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 | 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 | 119 | return Status::OK(); | 521 | 119 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 6.59k | const ColumnPtr& col_right_ptr) const { | 478 | 6.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 6.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 6.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 6.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 6.59k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 6.59k | if (!left_is_const && !right_is_const) { | 487 | 24 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 24 | vec_res.resize(col_left->get_data().size()); | 491 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 24 | vec_res); | 495 | | | 496 | 24 | block.replace_by_position(result, std::move(col_res)); | 497 | 6.57k | } else if (!left_is_const && right_is_const) { | 498 | 6.49k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 6.49k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 6.49k | vec_res.resize(col_left->size()); | 502 | 6.49k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 6.49k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 6.49k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 6.49k | col_right->get_element(0), vec_res); | 506 | | | 507 | 6.49k | block.replace_by_position(result, std::move(col_res)); | 508 | 6.49k | } else if (left_is_const && !right_is_const) { | 509 | 84 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 84 | vec_res.resize(col_right->size()); | 513 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 84 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 84 | col_right->get_data(), vec_res); | 517 | | | 518 | 84 | block.replace_by_position(result, std::move(col_res)); | 519 | 84 | } | 520 | 6.59k | return Status::OK(); | 521 | 6.59k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 704 | const ColumnPtr& col_right_ptr) const { | 478 | 704 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 704 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 704 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 704 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 704 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 704 | 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 | 671 | } else if (!left_is_const && right_is_const) { | 498 | 623 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 623 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 623 | vec_res.resize(col_left->size()); | 502 | 623 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 623 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 623 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 623 | col_right->get_element(0), vec_res); | 506 | | | 507 | 623 | block.replace_by_position(result, std::move(col_res)); | 508 | 623 | } 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 | 704 | return Status::OK(); | 521 | 704 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 39 | const ColumnPtr& col_right_ptr) const { | 478 | 39 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 39 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 39 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 39 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 39 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 39 | 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 | 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 | 39 | return Status::OK(); | 521 | 39 | } |
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 | 111 | const ColumnPtr& col_right_ptr) const { | 478 | 111 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 111 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 111 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 111 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 111 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 111 | 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 | 91 | } else if (!left_is_const && right_is_const) { | 498 | 91 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 91 | vec_res.resize(col_left->size()); | 502 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 91 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 91 | col_right->get_element(0), vec_res); | 506 | | | 507 | 91 | block.replace_by_position(result, std::move(col_res)); | 508 | 91 | } 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 | 111 | return Status::OK(); | 521 | 111 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 95 | const ColumnPtr& col_right_ptr) const { | 478 | 95 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 95 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 95 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 95 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 95 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 95 | if (!left_is_const && !right_is_const) { | 487 | 65 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 65 | vec_res.resize(col_left->get_data().size()); | 491 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 65 | vec_res); | 495 | | | 496 | 65 | block.replace_by_position(result, std::move(col_res)); | 497 | 65 | } 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 | 95 | return Status::OK(); | 521 | 95 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 714 | const ColumnPtr& col_right_ptr) const { | 478 | 714 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 714 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 714 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 714 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 714 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 715 | if (!left_is_const && !right_is_const) { | 487 | 196 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 196 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 196 | vec_res.resize(col_left->get_data().size()); | 491 | 196 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 196 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 196 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 196 | vec_res); | 495 | | | 496 | 196 | block.replace_by_position(result, std::move(col_res)); | 497 | 519 | } else if (!left_is_const && right_is_const) { | 498 | 519 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 519 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 519 | vec_res.resize(col_left->size()); | 502 | 519 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 519 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 519 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 519 | col_right->get_element(0), vec_res); | 506 | | | 507 | 519 | 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 | 714 | return Status::OK(); | 521 | 714 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 394 | const ColumnPtr& col_right_ptr) const { | 478 | 394 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 394 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 394 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 394 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 394 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 394 | if (!left_is_const && !right_is_const) { | 487 | 204 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 204 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 204 | vec_res.resize(col_left->get_data().size()); | 491 | 204 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 204 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 204 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 204 | vec_res); | 495 | | | 496 | 204 | block.replace_by_position(result, std::move(col_res)); | 497 | 204 | } else if (!left_is_const && right_is_const) { | 498 | 190 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 190 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 190 | vec_res.resize(col_left->size()); | 502 | 190 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 190 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 190 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 190 | col_right->get_element(0), vec_res); | 506 | | | 507 | 190 | block.replace_by_position(result, std::move(col_res)); | 508 | 190 | } 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 | 394 | return Status::OK(); | 521 | 394 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 198 | const ColumnPtr& col_right_ptr) const { | 478 | 198 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 198 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 198 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 198 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 198 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 198 | if (!left_is_const && !right_is_const) { | 487 | 112 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 112 | vec_res.resize(col_left->get_data().size()); | 491 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 112 | vec_res); | 495 | | | 496 | 112 | block.replace_by_position(result, std::move(col_res)); | 497 | 112 | } 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 | 198 | return Status::OK(); | 521 | 198 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 12 | const ColumnPtr& col_right_ptr) const { | 478 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 12 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 12 | if (!left_is_const && !right_is_const) { | 487 | 2 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 2 | vec_res.resize(col_left->get_data().size()); | 491 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 2 | vec_res); | 495 | | | 496 | 2 | block.replace_by_position(result, std::move(col_res)); | 497 | 10 | } else if (!left_is_const && right_is_const) { | 498 | 10 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 10 | vec_res.resize(col_left->size()); | 502 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 10 | col_right->get_element(0), vec_res); | 506 | | | 507 | 10 | block.replace_by_position(result, std::move(col_res)); | 508 | 10 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 12 | return Status::OK(); | 521 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 6.20k | const ColumnPtr& col_right_ptr) const { | 478 | 6.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 6.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 6.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 6.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 6.20k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 6.20k | if (!left_is_const && !right_is_const) { | 487 | 188 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 188 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 188 | vec_res.resize(col_left->get_data().size()); | 491 | 188 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 188 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 188 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 188 | vec_res); | 495 | | | 496 | 188 | block.replace_by_position(result, std::move(col_res)); | 497 | 6.01k | } else if (!left_is_const && right_is_const) { | 498 | 5.70k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 5.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 5.70k | vec_res.resize(col_left->size()); | 502 | 5.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 5.70k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 5.70k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 5.70k | col_right->get_element(0), vec_res); | 506 | | | 507 | 5.70k | block.replace_by_position(result, std::move(col_res)); | 508 | 5.70k | } else if (left_is_const && !right_is_const) { | 509 | 311 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 311 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 311 | vec_res.resize(col_right->size()); | 513 | 311 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 311 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 311 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 311 | col_right->get_data(), vec_res); | 517 | | | 518 | 311 | block.replace_by_position(result, std::move(col_res)); | 519 | 311 | } | 520 | 6.20k | return Status::OK(); | 521 | 6.20k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 408 | const ColumnPtr& col_right_ptr) const { | 478 | 408 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 408 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 408 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 408 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 408 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 408 | if (!left_is_const && !right_is_const) { | 487 | 92 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 92 | vec_res.resize(col_left->get_data().size()); | 491 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 92 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 92 | vec_res); | 495 | | | 496 | 92 | block.replace_by_position(result, std::move(col_res)); | 497 | 316 | } 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 | 47 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 47 | vec_res.resize(col_right->size()); | 513 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 47 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 47 | col_right->get_data(), vec_res); | 517 | | | 518 | 47 | block.replace_by_position(result, std::move(col_res)); | 519 | 47 | } | 520 | 408 | return Status::OK(); | 521 | 408 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 3.13k | const ColumnPtr& col_right_ptr) const { | 478 | 3.13k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 3.13k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 3.13k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 3.13k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 3.13k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 3.13k | if (!left_is_const && !right_is_const) { | 487 | 966 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 966 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 966 | vec_res.resize(col_left->get_data().size()); | 491 | 966 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 966 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 966 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 966 | vec_res); | 495 | | | 496 | 966 | block.replace_by_position(result, std::move(col_res)); | 497 | 2.17k | } else if (!left_is_const && right_is_const) { | 498 | 2.08k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.08k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.08k | vec_res.resize(col_left->size()); | 502 | 2.08k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.08k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.08k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.08k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.08k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.08k | } else if (left_is_const && !right_is_const) { | 509 | 91 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 91 | vec_res.resize(col_right->size()); | 513 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 91 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 91 | col_right->get_data(), vec_res); | 517 | | | 518 | 91 | block.replace_by_position(result, std::move(col_res)); | 519 | 91 | } | 520 | 3.13k | return Status::OK(); | 521 | 3.13k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 3.79k | const ColumnPtr& col_right_ptr) const { | 478 | 3.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 3.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 3.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 3.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 3.79k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 3.79k | if (!left_is_const && !right_is_const) { | 487 | 155 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 155 | vec_res.resize(col_left->get_data().size()); | 491 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 155 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 155 | vec_res); | 495 | | | 496 | 155 | block.replace_by_position(result, std::move(col_res)); | 497 | 3.64k | } else if (!left_is_const && right_is_const) { | 498 | 2.45k | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 2.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 2.45k | vec_res.resize(col_left->size()); | 502 | 2.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 2.45k | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 2.45k | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 2.45k | col_right->get_element(0), vec_res); | 506 | | | 507 | 2.45k | block.replace_by_position(result, std::move(col_res)); | 508 | 2.45k | } else if (left_is_const && !right_is_const) { | 509 | 1.19k | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 1.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 1.19k | vec_res.resize(col_right->size()); | 513 | 1.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 1.19k | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 1.19k | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 1.19k | col_right->get_data(), vec_res); | 517 | | | 518 | 1.19k | block.replace_by_position(result, std::move(col_res)); | 519 | 1.19k | } | 520 | 3.79k | return Status::OK(); | 521 | 3.79k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 91 | const ColumnPtr& col_right_ptr) const { | 478 | 91 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 91 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 91 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 91 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 91 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 91 | if (!left_is_const && !right_is_const) { | 487 | 46 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 46 | vec_res.resize(col_left->get_data().size()); | 491 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 46 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 46 | vec_res); | 495 | | | 496 | 46 | block.replace_by_position(result, std::move(col_res)); | 497 | 46 | } else if (!left_is_const && right_is_const) { | 498 | 29 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 29 | vec_res.resize(col_left->size()); | 502 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 29 | col_right->get_element(0), vec_res); | 506 | | | 507 | 29 | block.replace_by_position(result, std::move(col_res)); | 508 | 29 | } else if (left_is_const && !right_is_const) { | 509 | 16 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 16 | vec_res.resize(col_right->size()); | 513 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 16 | col_right->get_data(), vec_res); | 517 | | | 518 | 16 | block.replace_by_position(result, std::move(col_res)); | 519 | 16 | } | 520 | 91 | return Status::OK(); | 521 | 91 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 12 | const ColumnPtr& col_right_ptr) const { | 478 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 12 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 12 | if (!left_is_const && !right_is_const) { | 487 | 5 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 5 | vec_res.resize(col_left->get_data().size()); | 491 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 5 | vec_res); | 495 | | | 496 | 5 | block.replace_by_position(result, std::move(col_res)); | 497 | 7 | } else if (!left_is_const && right_is_const) { | 498 | 7 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 7 | vec_res.resize(col_left->size()); | 502 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 7 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 7 | col_right->get_element(0), vec_res); | 506 | | | 507 | 7 | block.replace_by_position(result, std::move(col_res)); | 508 | 7 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 12 | return Status::OK(); | 521 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 17 | const ColumnPtr& col_right_ptr) const { | 478 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 17 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 17 | if (!left_is_const && !right_is_const) { | 487 | 13 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 13 | vec_res.resize(col_left->get_data().size()); | 491 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 13 | vec_res); | 495 | | | 496 | 13 | block.replace_by_position(result, std::move(col_res)); | 497 | 13 | } else if (!left_is_const && right_is_const) { | 498 | 4 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 4 | vec_res.resize(col_left->size()); | 502 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 4 | col_right->get_element(0), vec_res); | 506 | | | 507 | 4 | block.replace_by_position(result, std::move(col_res)); | 508 | 4 | } else if (left_is_const && !right_is_const) { | 509 | 0 | auto col_res = ColumnUInt8::create(); | 510 | |
| 511 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 0 | vec_res.resize(col_right->size()); | 513 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 0 | col_right->get_data(), vec_res); | 517 | |
| 518 | 0 | block.replace_by_position(result, std::move(col_res)); | 519 | 0 | } | 520 | 17 | return Status::OK(); | 521 | 17 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 2.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 | 779 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 779 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 779 | vec_res.resize(col_left->get_data().size()); | 491 | 779 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 779 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 779 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 779 | vec_res); | 495 | | | 496 | 779 | 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 | 72 | const ColumnPtr& col_right_ptr) const { | 478 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 72 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 72 | if (!left_is_const && !right_is_const) { | 487 | 72 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 72 | vec_res.resize(col_left->get_data().size()); | 491 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 72 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 72 | vec_res); | 495 | | | 496 | 72 | block.replace_by_position(result, std::move(col_res)); | 497 | 72 | } 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 | 72 | return Status::OK(); | 521 | 72 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 893 | const ColumnPtr& col_right_ptr) const { | 478 | 893 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 893 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 893 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 893 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 893 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 894 | if (!left_is_const && !right_is_const) { | 487 | 92 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 92 | vec_res.resize(col_left->get_data().size()); | 491 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 92 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 92 | vec_res); | 495 | | | 496 | 92 | block.replace_by_position(result, std::move(col_res)); | 497 | 803 | } else if (!left_is_const && right_is_const) { | 498 | 803 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 803 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 803 | vec_res.resize(col_left->size()); | 502 | 803 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 803 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 803 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 803 | col_right->get_element(0), vec_res); | 506 | | | 507 | 803 | 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 | 893 | return Status::OK(); | 521 | 893 | } |
_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 | 2.50k | const ColumnPtr& col_right_ptr) const { | 478 | 2.50k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 2.50k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 2.50k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 2.50k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 2.50k | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 2.50k | if (!left_is_const && !right_is_const) { | 487 | 2.23k | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 2.23k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 2.23k | vec_res.resize(col_left->get_data().size()); | 491 | 2.23k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 2.23k | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 2.23k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 2.23k | vec_res); | 495 | | | 496 | 2.23k | block.replace_by_position(result, std::move(col_res)); | 497 | 2.23k | } else if (!left_is_const && right_is_const) { | 498 | 274 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 274 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 274 | vec_res.resize(col_left->size()); | 502 | 274 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 274 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 274 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 274 | col_right->get_element(0), vec_res); | 506 | | | 507 | 274 | block.replace_by_position(result, std::move(col_res)); | 508 | 274 | } 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.50k | return Status::OK(); | 521 | 2.50k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 477 | 992 | const ColumnPtr& col_right_ptr) const { | 478 | 992 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 992 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 992 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 992 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 992 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 992 | if (!left_is_const && !right_is_const) { | 487 | 383 | auto col_res = ColumnUInt8::create(); | 488 | | | 489 | 383 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 490 | 383 | vec_res.resize(col_left->get_data().size()); | 491 | 383 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 492 | 383 | typename PrimitiveTypeTraits<PT>::CppType, | 493 | 383 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 494 | 383 | vec_res); | 495 | | | 496 | 383 | block.replace_by_position(result, std::move(col_res)); | 497 | 609 | } else if (!left_is_const && right_is_const) { | 498 | 37 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 37 | vec_res.resize(col_left->size()); | 502 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 37 | col_right->get_element(0), vec_res); | 506 | | | 507 | 37 | block.replace_by_position(result, std::move(col_res)); | 508 | 572 | } else if (left_is_const && !right_is_const) { | 509 | 572 | auto col_res = ColumnUInt8::create(); | 510 | | | 511 | 572 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 512 | 572 | vec_res.resize(col_right->size()); | 513 | 572 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 514 | 572 | typename PrimitiveTypeTraits<PT>::CppType, | 515 | 572 | Op<PT>>::constant_vector(col_left->get_element(0), | 516 | 572 | col_right->get_data(), vec_res); | 517 | | | 518 | 572 | block.replace_by_position(result, std::move(col_res)); | 519 | 572 | } | 520 | 992 | return Status::OK(); | 521 | 992 | } |
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 | 47 | const ColumnPtr& col_right_ptr) const { | 478 | 47 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 479 | 47 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 480 | | | 481 | 47 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 482 | 47 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 483 | | | 484 | 47 | DCHECK(!(left_is_const && right_is_const)); | 485 | | | 486 | 47 | 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 | 27 | } else if (!left_is_const && right_is_const) { | 498 | 27 | auto col_res = ColumnUInt8::create(); | 499 | | | 500 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 501 | 27 | vec_res.resize(col_left->size()); | 502 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 503 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 504 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 505 | 27 | col_right->get_element(0), vec_res); | 506 | | | 507 | 27 | block.replace_by_position(result, std::move(col_res)); | 508 | 27 | } 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 | 47 | return Status::OK(); | 521 | 47 | } |
_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_ |
522 | | |
523 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
524 | 3.13k | const ColumnWithTypeAndName& col_right) const { |
525 | 3.13k | auto call = [&](const auto& type) -> bool { |
526 | 3.13k | using DispatchType = std::decay_t<decltype(type)>; |
527 | 3.13k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
528 | 3.13k | block, result, col_left, col_right); |
529 | 3.13k | return true; |
530 | 3.13k | }; _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 8 | auto call = [&](const auto& type) -> bool { | 526 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 8 | block, result, col_left, col_right); | 529 | 8 | return true; | 530 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 66 | auto call = [&](const auto& type) -> bool { | 526 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 66 | block, result, col_left, col_right); | 529 | 66 | return true; | 530 | 66 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 525 | 778 | auto call = [&](const auto& type) -> bool { | 526 | 778 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 778 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 778 | block, result, col_left, col_right); | 529 | 778 | return true; | 530 | 778 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 2 | auto call = [&](const auto& type) -> bool { | 526 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 2 | block, result, col_left, col_right); | 529 | 2 | return true; | 530 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 1 | auto call = [&](const auto& type) -> bool { | 526 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 1 | block, result, col_left, col_right); | 529 | 1 | return true; | 530 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 75 | auto call = [&](const auto& type) -> bool { | 526 | 75 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 75 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 75 | block, result, col_left, col_right); | 529 | 75 | return true; | 530 | 75 | }; |
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 | 85 | auto call = [&](const auto& type) -> bool { | 526 | 85 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 85 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 85 | block, result, col_left, col_right); | 529 | 85 | return true; | 530 | 85 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 17 | auto call = [&](const auto& type) -> bool { | 526 | 17 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 17 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 17 | block, result, col_left, col_right); | 529 | 17 | return true; | 530 | 17 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 163 | auto call = [&](const auto& type) -> bool { | 526 | 163 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 163 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 163 | block, result, col_left, col_right); | 529 | 163 | return true; | 530 | 163 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 188 | auto call = [&](const auto& type) -> bool { | 526 | 188 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 188 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 188 | block, result, col_left, col_right); | 529 | 188 | return true; | 530 | 188 | }; |
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 | 363 | auto call = [&](const auto& type) -> bool { | 526 | 363 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 363 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 363 | block, result, col_left, col_right); | 529 | 363 | return true; | 530 | 363 | }; |
_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 | 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 97 | auto call = [&](const auto& type) -> bool { | 526 | 97 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 97 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 97 | block, result, col_left, col_right); | 529 | 97 | return true; | 530 | 97 | }; |
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 | 70 | auto call = [&](const auto& type) -> bool { | 526 | 70 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 70 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 70 | block, result, col_left, col_right); | 529 | 70 | return true; | 530 | 70 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 12 | auto call = [&](const auto& type) -> bool { | 526 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 12 | block, result, col_left, col_right); | 529 | 12 | return true; | 530 | 12 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 525 | 98 | auto call = [&](const auto& type) -> bool { | 526 | 98 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 98 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 98 | block, result, col_left, col_right); | 529 | 98 | return true; | 530 | 98 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 525 | 109 | auto call = [&](const auto& type) -> bool { | 526 | 109 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 109 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 109 | block, result, col_left, col_right); | 529 | 109 | return true; | 530 | 109 | }; |
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 | 855 | auto call = [&](const auto& type) -> bool { | 526 | 855 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 855 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 855 | block, result, col_left, col_right); | 529 | 855 | return true; | 530 | 855 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 525 | 18 | auto call = [&](const auto& type) -> bool { | 526 | 18 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 18 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 18 | block, result, col_left, col_right); | 529 | 18 | return true; | 530 | 18 | }; |
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 | 67 | auto call = [&](const auto& type) -> bool { | 526 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 67 | block, result, col_left, col_right); | 529 | 67 | return true; | 530 | 67 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 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 | }; |
|
531 | | |
532 | 3.13k | 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.13k | 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.13k | return Status::OK(); |
543 | 3.13k | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 855 | const ColumnWithTypeAndName& col_right) const { | 525 | 855 | auto call = [&](const auto& type) -> bool { | 526 | 855 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 855 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 855 | block, result, col_left, col_right); | 529 | 855 | return true; | 530 | 855 | }; | 531 | | | 532 | 855 | 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 | 855 | 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 | 855 | return Status::OK(); | 543 | 855 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 178 | const ColumnWithTypeAndName& col_right) const { | 525 | 178 | auto call = [&](const auto& type) -> bool { | 526 | 178 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 178 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 178 | block, result, col_left, col_right); | 529 | 178 | return true; | 530 | 178 | }; | 531 | | | 532 | 178 | 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 | 178 | 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 | 178 | return Status::OK(); | 543 | 178 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 715 | const ColumnWithTypeAndName& col_right) const { | 525 | 715 | auto call = [&](const auto& type) -> bool { | 526 | 715 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 715 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 715 | block, result, col_left, col_right); | 529 | 715 | return true; | 530 | 715 | }; | 531 | | | 532 | 715 | 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 | 715 | 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 | 715 | return Status::OK(); | 543 | 715 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 183 | const ColumnWithTypeAndName& col_right) const { | 525 | 183 | auto call = [&](const auto& type) -> bool { | 526 | 183 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 183 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 183 | block, result, col_left, col_right); | 529 | 183 | return true; | 530 | 183 | }; | 531 | | | 532 | 183 | 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 | 183 | 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 | 183 | return Status::OK(); | 543 | 183 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 1.08k | const ColumnWithTypeAndName& col_right) const { | 525 | 1.08k | auto call = [&](const auto& type) -> bool { | 526 | 1.08k | using DispatchType = std::decay_t<decltype(type)>; | 527 | 1.08k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 1.08k | block, result, col_left, col_right); | 529 | 1.08k | return true; | 530 | 1.08k | }; | 531 | | | 532 | 1.08k | 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.08k | 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.08k | return Status::OK(); | 543 | 1.08k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 524 | 126 | const ColumnWithTypeAndName& col_right) const { | 525 | 126 | auto call = [&](const auto& type) -> bool { | 526 | 126 | using DispatchType = std::decay_t<decltype(type)>; | 527 | 126 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 528 | 126 | block, result, col_left, col_right); | 529 | 126 | return true; | 530 | 126 | }; | 531 | | | 532 | 126 | 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 | 126 | 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 | 126 | return Status::OK(); | 543 | 126 | } |
|
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 | 70 | const ColumnString* c0_const_string = |
563 | 70 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
564 | | |
565 | 70 | if (c0_const_string) { |
566 | 70 | c0_const_chars = &c0_const_string->get_chars(); |
567 | 70 | c0_const_size = c0_const_string->get_offsets()[0]; |
568 | 70 | } else { |
569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
570 | 0 | c0->get_name(), name); |
571 | 0 | } |
572 | 70 | } |
573 | | |
574 | 21.9k | if (c1_const) { |
575 | 21.0k | const ColumnString* c1_const_string = |
576 | 21.0k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
577 | | |
578 | 21.0k | if (c1_const_string) { |
579 | 21.0k | c1_const_chars = &c1_const_string->get_chars(); |
580 | 21.0k | c1_const_size = c1_const_string->get_offsets()[0]; |
581 | 21.0k | } else { |
582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
583 | 0 | c1->get_name(), name); |
584 | 0 | } |
585 | 21.0k | } |
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 | 849 | StringImpl::string_vector_string_vector( |
595 | 849 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
596 | 849 | c1_string->get_offsets(), vec_res); |
597 | 21.1k | } else if (c0_string && c1_const) { |
598 | 21.0k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
599 | 21.0k | *c1_const_chars, c1_const_size, vec_res); |
600 | 21.0k | } else if (c0_const && c1_string) { |
601 | 70 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
602 | 70 | c1_string->get_chars(), c1_string->get_offsets(), |
603 | 70 | vec_res); |
604 | 18.4E | } else { |
605 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
606 | 18.4E | c0->get_name(), c1->get_name(), name); |
607 | 18.4E | } |
608 | 21.9k | block.replace_by_position(result, std::move(c_res)); |
609 | 21.9k | return Status::OK(); |
610 | 21.9k | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 204 | const IColumn* c1) const { | 547 | 204 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 204 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 204 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 204 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 204 | 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 | 204 | DCHECK(!(c0_const && c1_const)); | 556 | 204 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 204 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 204 | ColumnString::Offset c0_const_size = 0; | 559 | 204 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 204 | 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 | 204 | if (c1_const) { | 575 | 202 | const ColumnString* c1_const_string = | 576 | 202 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 202 | if (c1_const_string) { | 579 | 202 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 202 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 202 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 202 | } | 586 | | | 587 | 204 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 204 | auto c_res = ColumnUInt8::create(); | 590 | 204 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 204 | vec_res.resize(c0->size()); | 592 | | | 593 | 204 | 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 | 202 | } else if (c0_string && c1_const) { | 598 | 202 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 202 | *c1_const_chars, c1_const_size, vec_res); | 600 | 202 | } 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 | 204 | block.replace_by_position(result, std::move(c_res)); | 609 | 204 | return Status::OK(); | 610 | 204 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 323 | const IColumn* c1) const { | 547 | 323 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 323 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 323 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 323 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 323 | 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 | 323 | DCHECK(!(c0_const && c1_const)); | 556 | 323 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 323 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 323 | ColumnString::Offset c0_const_size = 0; | 559 | 323 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 323 | if (c0_const) { | 562 | 48 | const ColumnString* c0_const_string = | 563 | 48 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | | | 565 | 48 | if (c0_const_string) { | 566 | 48 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 48 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 48 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 48 | } | 573 | | | 574 | 323 | if (c1_const) { | 575 | 239 | const ColumnString* c1_const_string = | 576 | 239 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 239 | if (c1_const_string) { | 579 | 239 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 239 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 239 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 239 | } | 586 | | | 587 | 323 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 323 | auto c_res = ColumnUInt8::create(); | 590 | 323 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 323 | vec_res.resize(c0->size()); | 592 | | | 593 | 323 | 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 | 287 | } else if (c0_string && c1_const) { | 598 | 239 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 239 | *c1_const_chars, c1_const_size, vec_res); | 600 | 239 | } else if (c0_const && c1_string) { | 601 | 48 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 48 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 48 | vec_res); | 604 | 48 | } else { | 605 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 0 | c0->get_name(), c1->get_name(), name); | 607 | 0 | } | 608 | 323 | block.replace_by_position(result, std::move(c_res)); | 609 | 323 | return Status::OK(); | 610 | 323 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 504 | const IColumn* c1) const { | 547 | 504 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 504 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 504 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 504 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 504 | 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 | 504 | DCHECK(!(c0_const && c1_const)); | 556 | 504 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 504 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 504 | ColumnString::Offset c0_const_size = 0; | 559 | 504 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 504 | 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 | 504 | if (c1_const) { | 575 | 108 | const ColumnString* c1_const_string = | 576 | 108 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 108 | if (c1_const_string) { | 579 | 108 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 108 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 108 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 108 | } | 586 | | | 587 | 504 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 504 | auto c_res = ColumnUInt8::create(); | 590 | 504 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 504 | vec_res.resize(c0->size()); | 592 | | | 593 | 504 | if (c0_string && c1_string) { | 594 | 390 | StringImpl::string_vector_string_vector( | 595 | 390 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 390 | c1_string->get_offsets(), vec_res); | 597 | 390 | } else if (c0_string && c1_const) { | 598 | 108 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 108 | *c1_const_chars, c1_const_size, vec_res); | 600 | 108 | } 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 | 504 | block.replace_by_position(result, std::move(c_res)); | 609 | 504 | return Status::OK(); | 610 | 504 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 288 | const IColumn* c1) const { | 547 | 288 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 288 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 288 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 288 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 288 | 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 | 288 | DCHECK(!(c0_const && c1_const)); | 556 | 288 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 288 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 288 | ColumnString::Offset c0_const_size = 0; | 559 | 288 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 288 | 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 | 288 | if (c1_const) { | 575 | 288 | const ColumnString* c1_const_string = | 576 | 288 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 288 | if (c1_const_string) { | 579 | 288 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 288 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 288 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 288 | } | 586 | | | 587 | 288 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 288 | auto c_res = ColumnUInt8::create(); | 590 | 288 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 288 | vec_res.resize(c0->size()); | 592 | | | 593 | 288 | 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 | 288 | } else if (c0_string && c1_const) { | 598 | 288 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 288 | *c1_const_chars, c1_const_size, vec_res); | 600 | 288 | } 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 | 288 | block.replace_by_position(result, std::move(c_res)); | 609 | 288 | return Status::OK(); | 610 | 288 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 20.5k | const IColumn* c1) const { | 547 | 20.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 20.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 20.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 20.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 20.5k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 552 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 553 | 0 | c0->get_name(), c1->get_name(), name); | 554 | 0 | } | 555 | 20.5k | DCHECK(!(c0_const && c1_const)); | 556 | 20.5k | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 20.5k | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 20.5k | ColumnString::Offset c0_const_size = 0; | 559 | 20.5k | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 20.5k | if (c0_const) { | 562 | 16 | const ColumnString* c0_const_string = | 563 | 16 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 564 | | | 565 | 16 | if (c0_const_string) { | 566 | 16 | c0_const_chars = &c0_const_string->get_chars(); | 567 | 16 | c0_const_size = c0_const_string->get_offsets()[0]; | 568 | 16 | } else { | 569 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 570 | 0 | c0->get_name(), name); | 571 | 0 | } | 572 | 16 | } | 573 | | | 574 | 20.5k | if (c1_const) { | 575 | 20.0k | const ColumnString* c1_const_string = | 576 | 20.0k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 20.0k | if (c1_const_string) { | 579 | 20.0k | c1_const_chars = &c1_const_string->get_chars(); | 580 | 20.0k | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 20.0k | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 20.0k | } | 586 | | | 587 | 20.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 20.5k | auto c_res = ColumnUInt8::create(); | 590 | 20.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 20.5k | vec_res.resize(c0->size()); | 592 | | | 593 | 20.5k | if (c0_string && c1_string) { | 594 | 411 | StringImpl::string_vector_string_vector( | 595 | 411 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 596 | 411 | c1_string->get_offsets(), vec_res); | 597 | 20.0k | } else if (c0_string && c1_const) { | 598 | 20.0k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 20.0k | *c1_const_chars, c1_const_size, vec_res); | 600 | 20.0k | } else if (c0_const && c1_string) { | 601 | 16 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 602 | 16 | c1_string->get_chars(), c1_string->get_offsets(), | 603 | 16 | vec_res); | 604 | 18.4E | } else { | 605 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 606 | 18.4E | c0->get_name(), c1->get_name(), name); | 607 | 18.4E | } | 608 | 20.5k | block.replace_by_position(result, std::move(c_res)); | 609 | 20.5k | return Status::OK(); | 610 | 20.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 546 | 133 | const IColumn* c1) const { | 547 | 133 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 548 | 133 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 549 | 133 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 550 | 133 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 551 | 133 | 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 | 133 | DCHECK(!(c0_const && c1_const)); | 556 | 133 | const ColumnString::Chars* c0_const_chars = nullptr; | 557 | 133 | const ColumnString::Chars* c1_const_chars = nullptr; | 558 | 133 | ColumnString::Offset c0_const_size = 0; | 559 | 133 | ColumnString::Offset c1_const_size = 0; | 560 | | | 561 | 133 | 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 | 133 | if (c1_const) { | 575 | 123 | const ColumnString* c1_const_string = | 576 | 123 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 577 | | | 578 | 123 | if (c1_const_string) { | 579 | 123 | c1_const_chars = &c1_const_string->get_chars(); | 580 | 123 | c1_const_size = c1_const_string->get_offsets()[0]; | 581 | 123 | } else { | 582 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 583 | 0 | c1->get_name(), name); | 584 | 0 | } | 585 | 123 | } | 586 | | | 587 | 133 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 588 | | | 589 | 133 | auto c_res = ColumnUInt8::create(); | 590 | 133 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 591 | 133 | vec_res.resize(c0->size()); | 592 | | | 593 | 133 | 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 | 123 | } else if (c0_string && c1_const) { | 598 | 123 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 599 | 123 | *c1_const_chars, c1_const_size, vec_res); | 600 | 123 | } 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 | 133 | block.replace_by_position(result, std::move(c_res)); | 609 | 133 | return Status::OK(); | 610 | 133 | } |
|
611 | | |
612 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
613 | 159 | const IColumn* c1) const { |
614 | 159 | bool c0_const = is_column_const(*c0); |
615 | 159 | bool c1_const = is_column_const(*c1); |
616 | | |
617 | 159 | DCHECK(!(c0_const && c1_const)); |
618 | | |
619 | 159 | auto c_res = ColumnUInt8::create(); |
620 | 159 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
621 | 159 | vec_res.resize(c0->size()); |
622 | | |
623 | 159 | if (c0_const) { |
624 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
625 | 158 | } else if (c1_const) { |
626 | 144 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
627 | 144 | } else { |
628 | 14 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
629 | 14 | } |
630 | | |
631 | 159 | block.replace_by_position(result, std::move(c_res)); |
632 | 159 | } _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 | 50 | const IColumn* c1) const { | 614 | 50 | bool c0_const = is_column_const(*c0); | 615 | 50 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 50 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 50 | auto c_res = ColumnUInt8::create(); | 620 | 50 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 50 | vec_res.resize(c0->size()); | 622 | | | 623 | 50 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 50 | } else if (c1_const) { | 626 | 49 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 49 | } else { | 628 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 1 | } | 630 | | | 631 | 50 | block.replace_by_position(result, std::move(c_res)); | 632 | 50 | } |
_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 | 53 | const IColumn* c1) const { | 614 | 53 | bool c0_const = is_column_const(*c0); | 615 | 53 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 53 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 53 | auto c_res = ColumnUInt8::create(); | 620 | 53 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 53 | vec_res.resize(c0->size()); | 622 | | | 623 | 53 | if (c0_const) { | 624 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 53 | } else if (c1_const) { | 626 | 53 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 53 | } else { | 628 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 0 | } | 630 | | | 631 | 53 | block.replace_by_position(result, std::move(c_res)); | 632 | 53 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 613 | 26 | const IColumn* c1) const { | 614 | 26 | bool c0_const = is_column_const(*c0); | 615 | 26 | bool c1_const = is_column_const(*c1); | 616 | | | 617 | 26 | DCHECK(!(c0_const && c1_const)); | 618 | | | 619 | 26 | auto c_res = ColumnUInt8::create(); | 620 | 26 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 621 | 26 | vec_res.resize(c0->size()); | 622 | | | 623 | 26 | if (c0_const) { | 624 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 625 | 25 | } else if (c1_const) { | 626 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 627 | 18 | } else { | 628 | 7 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 629 | 7 | } | 630 | | | 631 | 26 | block.replace_by_position(result, std::move(c_res)); | 632 | 26 | } |
_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 | } |
|
633 | | |
634 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
635 | 159 | const ColumnWithTypeAndName& c1) const { |
636 | 159 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
637 | 159 | return Status::OK(); |
638 | 159 | } _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 | 50 | const ColumnWithTypeAndName& c1) const { | 636 | 50 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 50 | return Status::OK(); | 638 | 50 | } |
_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 | 53 | const ColumnWithTypeAndName& c1) const { | 636 | 53 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 53 | return Status::OK(); | 638 | 53 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 635 | 26 | const ColumnWithTypeAndName& c1) const { | 636 | 26 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 637 | 26 | return Status::OK(); | 638 | 26 | } |
_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 | } |
|
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_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_ 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_ |
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_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 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 |
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_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 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 |
725 | | |
726 | | public: |
727 | 220 | 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; } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 61 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 727 | 37 | String get_name() const override { return name; } |
|
728 | | |
729 | 303k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 729 | 6.78k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 9.51k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 729 | 3.85k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 729 | 11.0k | 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; } |
|
730 | | |
731 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
732 | 3.36k | const VExprSPtrs& arguments) const override { |
733 | 3.36k | auto op = comparison_zonemap_detail::op_from_name(name); |
734 | 3.36k | DORIS_CHECK(op.has_value()); |
735 | 3.36k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
736 | 3.36k | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 275 | const VExprSPtrs& arguments) const override { | 733 | 275 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 275 | DORIS_CHECK(op.has_value()); | 735 | 275 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 275 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 385 | const VExprSPtrs& arguments) const override { | 733 | 385 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 385 | DORIS_CHECK(op.has_value()); | 735 | 385 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 385 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 485 | const VExprSPtrs& arguments) const override { | 733 | 485 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 485 | DORIS_CHECK(op.has_value()); | 735 | 485 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 485 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 732 | 285 | const VExprSPtrs& arguments) const override { | 733 | 285 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 285 | DORIS_CHECK(op.has_value()); | 735 | 285 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 285 | } |
_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 | 145 | const VExprSPtrs& arguments) const override { | 733 | 145 | auto op = comparison_zonemap_detail::op_from_name(name); | 734 | 145 | DORIS_CHECK(op.has_value()); | 735 | 145 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 736 | 145 | } |
|
737 | | |
738 | 32.6k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
739 | 32.6k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
740 | 32.7k | comparison_zonemap_detail::can_evaluate(arguments); |
741 | 32.6k | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 5.15k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 5.15k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 5.19k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 5.15k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 4.43k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 4.43k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 4.47k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 4.43k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 4.18k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 4.18k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 4.20k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 4.18k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 2.07k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 2.07k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 2.10k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 2.07k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 15.4k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 15.4k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 15.4k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 15.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 738 | 1.31k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 739 | 1.31k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 740 | 1.32k | comparison_zonemap_detail::can_evaluate(arguments); | 741 | 1.31k | } |
|
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_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 _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 |
749 | | |
750 | 830 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
751 | 830 | auto op = comparison_zonemap_detail::op_from_name(name); |
752 | 830 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
753 | 830 | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 94 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 94 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 94 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 94 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 223 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 223 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 223 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 223 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 137 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 137 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 137 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 750 | 9 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 751 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 752 | 9 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 753 | 9 | } |
_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 | } |
|
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 | } 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 _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 |
761 | | |
762 | 338 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
763 | 338 | auto op = comparison_zonemap_detail::op_from_name(name); |
764 | 338 | return op == comparison_zonemap_detail::Op::EQ && |
765 | 338 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
766 | 338 | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 28 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 28 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 28 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 28 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 28 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 76 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 76 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 76 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 76 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 58 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 58 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 58 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 58 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 762 | 4 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 763 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 764 | 4 | return op == comparison_zonemap_detail::Op::EQ && | 765 | 4 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 766 | 4 | } |
_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 | } |
|
767 | | |
768 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
769 | 303k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
770 | 303k | return std::make_shared<DataTypeUInt8>(); |
771 | 303k | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 6.78k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 6.78k | return std::make_shared<DataTypeUInt8>(); | 771 | 6.78k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 9.54k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 9.54k | return std::make_shared<DataTypeUInt8>(); | 771 | 9.54k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 3.85k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 3.85k | return std::make_shared<DataTypeUInt8>(); | 771 | 3.85k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 769 | 11.1k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 770 | 11.1k | return std::make_shared<DataTypeUInt8>(); | 771 | 11.1k | } |
_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 | } |
|
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 | 297 | return Status::OK(); |
789 | 297 | } |
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 | 691 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
794 | 691 | } else if (name_view == NameLess::name) { |
795 | 78 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
796 | 244 | } else if (name_view == NameLessOrEquals::name) { |
797 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
798 | 163 | } else if (name_view == NameGreater::name) { |
799 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
800 | 92 | } else if (name_view == NameGreaterOrEquals::name) { |
801 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
802 | 18.4E | } else { |
803 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
804 | 18.4E | } |
805 | | |
806 | 1.01k | if (segment_v2::is_range_query(query_type) && |
807 | 1.01k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
809 | 133 | return Status::OK(); |
810 | 133 | } |
811 | 882 | Field param_value; |
812 | 882 | arguments[0].column->get(0, param_value); |
813 | 882 | if (param_value.is_null()) { |
814 | 2 | return Status::OK(); |
815 | 2 | } |
816 | 880 | segment_v2::InvertedIndexParam param; |
817 | 880 | param.column_name = data_type_with_name.first; |
818 | 880 | param.column_type = data_type_with_name.second; |
819 | 880 | param.query_value = param_value; |
820 | 880 | param.query_type = query_type; |
821 | 880 | param.num_rows = num_rows; |
822 | 880 | param.roaring = std::make_shared<roaring::Roaring>(); |
823 | 880 | param.analyzer_ctx = analyzer_ctx; |
824 | 880 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
825 | 739 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
826 | 739 | if (iter->has_null()) { |
827 | 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 | 739 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
832 | 739 | bitmap_result = result; |
833 | 739 | bitmap_result.mask_out_null(); |
834 | | |
835 | 739 | if (name_view == NameNotEquals::name) { |
836 | 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 | 739 | return Status::OK(); |
842 | 739 | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 110 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 110 | DCHECK(arguments.size() == 1); | 780 | 110 | DCHECK(data_type_with_names.size() == 1); | 781 | 110 | DCHECK(iterators.size() == 1); | 782 | 110 | auto* iter = iterators[0]; | 783 | 110 | auto data_type_with_name = data_type_with_names[0]; | 784 | 110 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 110 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 39 | return Status::OK(); | 789 | 39 | } | 790 | 71 | segment_v2::InvertedIndexQueryType query_type; | 791 | 71 | 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 | 71 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 71 | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 73 | } else if (name_view == NameGreater::name) { | 799 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 18.4E | } else { | 803 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 18.4E | } | 805 | | | 806 | 73 | if (segment_v2::is_range_query(query_type) && | 807 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 809 | 17 | return Status::OK(); | 810 | 17 | } | 811 | 56 | Field param_value; | 812 | 56 | arguments[0].column->get(0, param_value); | 813 | 56 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 56 | segment_v2::InvertedIndexParam param; | 817 | 56 | param.column_name = data_type_with_name.first; | 818 | 56 | param.column_type = data_type_with_name.second; | 819 | 56 | param.query_value = param_value; | 820 | 56 | param.query_type = query_type; | 821 | 56 | param.num_rows = num_rows; | 822 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 56 | param.analyzer_ctx = analyzer_ctx; | 824 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 37 | if (iter->has_null()) { | 827 | 36 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 36 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 36 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 36 | } | 831 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 37 | bitmap_result = result; | 833 | 37 | bitmap_result.mask_out_null(); | 834 | | | 835 | 37 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 37 | return Status::OK(); | 842 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 178 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 178 | DCHECK(arguments.size() == 1); | 780 | 178 | DCHECK(data_type_with_names.size() == 1); | 781 | 178 | DCHECK(iterators.size() == 1); | 782 | 178 | auto* iter = iterators[0]; | 783 | 178 | auto data_type_with_name = data_type_with_names[0]; | 784 | 178 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 178 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 86 | return Status::OK(); | 789 | 86 | } | 790 | 92 | segment_v2::InvertedIndexQueryType query_type; | 791 | 92 | std::string_view name_view(name); | 792 | 92 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 92 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 92 | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 92 | } else if (name_view == NameGreater::name) { | 799 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 92 | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 92 | } else { | 803 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 0 | } | 805 | | | 806 | 92 | if (segment_v2::is_range_query(query_type) && | 807 | 92 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 808 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 809 | 47 | return Status::OK(); | 810 | 47 | } | 811 | 45 | Field param_value; | 812 | 45 | arguments[0].column->get(0, param_value); | 813 | 45 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 45 | segment_v2::InvertedIndexParam param; | 817 | 45 | param.column_name = data_type_with_name.first; | 818 | 45 | param.column_type = data_type_with_name.second; | 819 | 45 | param.query_value = param_value; | 820 | 45 | param.query_type = query_type; | 821 | 45 | param.num_rows = num_rows; | 822 | 45 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 45 | param.analyzer_ctx = analyzer_ctx; | 824 | 45 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 4 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 4 | if (iter->has_null()) { | 827 | 4 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 4 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 4 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 4 | } | 831 | 4 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 4 | bitmap_result = result; | 833 | 4 | bitmap_result.mask_out_null(); | 834 | | | 835 | 4 | 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 | 4 | return Status::OK(); | 842 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 120 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 120 | DCHECK(arguments.size() == 1); | 780 | 120 | DCHECK(data_type_with_names.size() == 1); | 781 | 120 | DCHECK(iterators.size() == 1); | 782 | 120 | auto* iter = iterators[0]; | 783 | 120 | auto data_type_with_name = data_type_with_names[0]; | 784 | 120 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 120 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 42 | return Status::OK(); | 789 | 42 | } | 790 | 78 | segment_v2::InvertedIndexQueryType query_type; | 791 | 78 | std::string_view name_view(name); | 792 | 78 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 78 | } else if (name_view == NameLess::name) { | 795 | 78 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 78 | } 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 | 78 | if (segment_v2::is_range_query(query_type) && | 807 | 78 | 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 | 60 | Field param_value; | 812 | 60 | arguments[0].column->get(0, param_value); | 813 | 60 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 60 | segment_v2::InvertedIndexParam param; | 817 | 60 | param.column_name = data_type_with_name.first; | 818 | 60 | param.column_type = data_type_with_name.second; | 819 | 60 | param.query_value = param_value; | 820 | 60 | param.query_type = query_type; | 821 | 60 | param.num_rows = num_rows; | 822 | 60 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 60 | param.analyzer_ctx = analyzer_ctx; | 824 | 60 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 42 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 42 | if (iter->has_null()) { | 827 | 42 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 42 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 42 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 42 | } | 831 | 42 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 42 | bitmap_result = result; | 833 | 42 | bitmap_result.mask_out_null(); | 834 | | | 835 | 42 | if (name_view == NameNotEquals::name) { | 836 | 0 | roaring::Roaring full_result; | 837 | 0 | full_result.addRange(0, num_rows); | 838 | 0 | bitmap_result.op_not(&full_result); | 839 | 0 | } | 840 | | | 841 | 42 | return Status::OK(); | 842 | 42 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 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 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 778 | 656 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 779 | 656 | DCHECK(arguments.size() == 1); | 780 | 656 | DCHECK(data_type_with_names.size() == 1); | 781 | 656 | DCHECK(iterators.size() == 1); | 782 | 656 | auto* iter = iterators[0]; | 783 | 656 | auto data_type_with_name = data_type_with_names[0]; | 784 | 656 | if (iter == nullptr) { | 785 | 0 | return Status::OK(); | 786 | 0 | } | 787 | 656 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 788 | 30 | return Status::OK(); | 789 | 30 | } | 790 | 626 | segment_v2::InvertedIndexQueryType query_type; | 791 | 626 | std::string_view name_view(name); | 792 | 627 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 627 | 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 | 627 | if (segment_v2::is_range_query(query_type) && | 807 | 627 | 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 | 627 | Field param_value; | 812 | 627 | arguments[0].column->get(0, param_value); | 813 | 627 | if (param_value.is_null()) { | 814 | 2 | return Status::OK(); | 815 | 2 | } | 816 | 625 | segment_v2::InvertedIndexParam param; | 817 | 625 | param.column_name = data_type_with_name.first; | 818 | 625 | param.column_type = data_type_with_name.second; | 819 | 625 | param.query_value = param_value; | 820 | 625 | param.query_type = query_type; | 821 | 625 | param.num_rows = num_rows; | 822 | 625 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 625 | param.analyzer_ctx = analyzer_ctx; | 824 | 625 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 590 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 590 | 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 | 590 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 590 | bitmap_result = result; | 833 | 590 | bitmap_result.mask_out_null(); | 834 | | | 835 | 590 | 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 | 590 | return Status::OK(); | 842 | 590 | } |
_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 | 65 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 793 | 64 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 794 | 64 | } else if (name_view == NameLess::name) { | 795 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 796 | 1 | } else if (name_view == NameLessOrEquals::name) { | 797 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 798 | 1 | } else if (name_view == NameGreater::name) { | 799 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 800 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 801 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 802 | 1 | } else { | 803 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 804 | 1 | } | 805 | | | 806 | 64 | if (segment_v2::is_range_query(query_type) && | 807 | 64 | 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 | 64 | Field param_value; | 812 | 64 | arguments[0].column->get(0, param_value); | 813 | 64 | if (param_value.is_null()) { | 814 | 0 | return Status::OK(); | 815 | 0 | } | 816 | 64 | segment_v2::InvertedIndexParam param; | 817 | 64 | param.column_name = data_type_with_name.first; | 818 | 64 | param.column_type = data_type_with_name.second; | 819 | 64 | param.query_value = param_value; | 820 | 64 | param.query_type = query_type; | 821 | 64 | param.num_rows = num_rows; | 822 | 64 | param.roaring = std::make_shared<roaring::Roaring>(); | 823 | 64 | param.analyzer_ctx = analyzer_ctx; | 824 | 64 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 825 | 57 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 826 | 59 | if (iter->has_null()) { | 827 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 828 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 829 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 830 | 59 | } | 831 | 57 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 832 | 57 | bitmap_result = result; | 833 | 57 | 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 | 57 | return Status::OK(); | 842 | 57 | } |
|
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 | 148k | uint32_t result, size_t input_rows_count) const override { |
849 | 148k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
850 | 148k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
851 | | |
852 | 148k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
853 | 148k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
854 | 148k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
855 | 148k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
856 | | |
857 | 148k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
858 | 148k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
859 | | |
860 | 148k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ |
861 | 741k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ |
862 | 741k | 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 | 741k | if (left_type->get_primitive_type() == TYPE && \ |
867 | 741k | 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 | 148k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) |
873 | 296k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) |
874 | 296k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) |
875 | 296k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) |
876 | 296k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) |
877 | | |
878 | 148k | #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 | 148k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
884 | 148k | 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 | 266k | auto can_compare = [](PrimitiveType t) -> bool { |
907 | 266k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
908 | 266k | is_timestamp_ns_type(t); |
909 | 266k | }; _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 155k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 155k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 155k | is_timestamp_ns_type(t); | 909 | 155k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 7.55k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 7.55k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 7.55k | is_timestamp_ns_type(t); | 909 | 7.55k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 21.3k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 21.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 21.3k | is_timestamp_ns_type(t); | 909 | 21.3k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 17.8k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 17.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 17.8k | is_timestamp_ns_type(t); | 909 | 17.8k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 56.5k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 56.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 56.5k | is_timestamp_ns_type(t); | 909 | 56.5k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 906 | 7.80k | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 7.80k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 7.80k | is_timestamp_ns_type(t); | 909 | 7.80k | }; |
|
910 | | |
911 | 148k | if (can_compare(left_type->get_primitive_type()) && |
912 | 148k | 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 | 118k | 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 | 118k | } |
920 | | |
921 | 148k | auto compare_type = left_type->get_primitive_type(); |
922 | 148k | switch (compare_type) { |
923 | 243 | case TYPE_BOOLEAN: |
924 | 243 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
925 | 5.20k | case TYPE_DATEV2: |
926 | 5.20k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
927 | 864 | case TYPE_DATETIMEV2: |
928 | 864 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
929 | 883 | case TYPE_TIMESTAMP_NS: |
930 | 883 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
931 | 18 | case TYPE_TIMESTAMPTZ: |
932 | 18 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
933 | 10.4k | case TYPE_TINYINT: |
934 | 10.4k | 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 | 83.1k | case TYPE_INT: |
938 | 83.1k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
939 | 9.97k | case TYPE_BIGINT: |
940 | 9.97k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
941 | 681 | case TYPE_LARGEINT: |
942 | 681 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
943 | 34 | case TYPE_IPV4: |
944 | 34 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
945 | 34 | case TYPE_IPV6: |
946 | 34 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
947 | 4.85k | case TYPE_UUID: |
948 | 4.85k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
949 | 511 | case TYPE_FLOAT: |
950 | 511 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
951 | 2.88k | case TYPE_DOUBLE: |
952 | 2.88k | 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 | 274 | case TYPE_DECIMAL32: |
957 | 876 | case TYPE_DECIMAL64: |
958 | 3.05k | case TYPE_DECIMAL128I: |
959 | 3.13k | case TYPE_DECIMAL256: |
960 | 3.13k | return execute_decimal(block, result, col_with_type_and_name_left, |
961 | 3.13k | col_with_type_and_name_right); |
962 | 808 | case TYPE_CHAR: |
963 | 7.21k | case TYPE_VARCHAR: |
964 | 21.9k | case TYPE_STRING: |
965 | 21.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
966 | 159 | default: |
967 | 159 | return execute_generic(block, result, col_with_type_and_name_left, |
968 | 159 | col_with_type_and_name_right); |
969 | 148k | } |
970 | 0 | return Status::OK(); |
971 | 148k | } _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 78.5k | uint32_t result, size_t input_rows_count) const override { | 849 | 78.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 78.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 78.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 78.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 78.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 78.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 78.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 78.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 78.5k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 78.5k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 78.5k | right_type->get_primitive_type() == TYPE) { \ | 863 | 78.5k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 78.5k | col_right_ptr, input_rows_count); \ | 865 | 78.5k | } \ | 866 | 78.5k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 78.5k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 78.5k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 78.5k | col_right_ptr, input_rows_count); \ | 870 | 78.5k | } | 871 | | | 872 | 78.5k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 157k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 157k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 157k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 157k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 78.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 | 78.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 78.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 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | | block.get_by_position(result).column = | 891 | | DataTypeUInt8() | 892 | | .create_column_const(input_rows_count, | 893 | | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | | ->convert_to_full_column_if_const(); | 895 | | return Status::OK(); | 896 | 0 | } else { | 897 | 0 | block.get_by_position(result).column = | 898 | 0 | DataTypeUInt8() | 899 | 0 | .create_column_const(input_rows_count, | 900 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | 0 | ->convert_to_full_column_if_const(); | 902 | 0 | return Status::OK(); | 903 | 0 | } | 904 | 0 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 78.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 78.5k | is_timestamp_ns_type(t); | 909 | 78.5k | }; | 910 | | | 911 | 78.5k | if (can_compare(left_type->get_primitive_type()) && | 912 | 78.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 | 76.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 76.8k | } | 920 | | | 921 | 78.5k | auto compare_type = left_type->get_primitive_type(); | 922 | 78.5k | 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.20k | case TYPE_DATEV2: | 926 | 1.20k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 2 | case TYPE_DATETIMEV2: | 928 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 67 | case TYPE_TIMESTAMP_NS: | 930 | 67 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 1 | case TYPE_TIMESTAMPTZ: | 932 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 1.55k | case TYPE_TINYINT: | 934 | 1.55k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 2.38k | case TYPE_SMALLINT: | 936 | 2.38k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 67.9k | case TYPE_INT: | 938 | 67.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 2.69k | case TYPE_BIGINT: | 940 | 2.69k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 256 | case TYPE_LARGEINT: | 942 | 256 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 4 | case TYPE_IPV4: | 944 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 1 | case TYPE_IPV6: | 946 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 611 | case TYPE_UUID: | 948 | 611 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 219 | case TYPE_FLOAT: | 950 | 219 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 541 | case TYPE_DOUBLE: | 952 | 541 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 8 | case TYPE_DECIMAL32: | 957 | 74 | case TYPE_DECIMAL64: | 958 | 852 | case TYPE_DECIMAL128I: | 959 | 854 | case TYPE_DECIMAL256: | 960 | 854 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 854 | col_with_type_and_name_right); | 962 | 14 | case TYPE_CHAR: | 963 | 102 | case TYPE_VARCHAR: | 964 | 204 | case TYPE_STRING: | 965 | 204 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 9 | default: | 967 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 9 | col_with_type_and_name_right); | 969 | 78.5k | } | 970 | 0 | return Status::OK(); | 971 | 78.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 4.31k | uint32_t result, size_t input_rows_count) const override { | 849 | 4.31k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 4.31k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 4.31k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 4.31k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 4.31k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 4.31k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 4.31k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 4.31k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 4.31k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 4.31k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 4.31k | right_type->get_primitive_type() == TYPE) { \ | 863 | 4.31k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 4.31k | col_right_ptr, input_rows_count); \ | 865 | 4.31k | } \ | 866 | 4.31k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 4.31k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 4.31k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 4.31k | col_right_ptr, input_rows_count); \ | 870 | 4.31k | } | 871 | | | 872 | 4.31k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 8.63k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 8.63k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 8.63k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 8.63k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 4.31k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 4.31k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 4.31k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | 0 | block.get_by_position(result).column = | 891 | 0 | DataTypeUInt8() | 892 | 0 | .create_column_const(input_rows_count, | 893 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | 0 | ->convert_to_full_column_if_const(); | 895 | 0 | return Status::OK(); | 896 | | } else { | 897 | | block.get_by_position(result).column = | 898 | | DataTypeUInt8() | 899 | | .create_column_const(input_rows_count, | 900 | | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | | ->convert_to_full_column_if_const(); | 902 | | return Status::OK(); | 903 | | } | 904 | 0 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 4.31k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 4.31k | is_timestamp_ns_type(t); | 909 | 4.31k | }; | 910 | | | 911 | 4.31k | if (can_compare(left_type->get_primitive_type()) && | 912 | 4.31k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 3.23k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 3.23k | } | 920 | | | 921 | 4.31k | auto compare_type = left_type->get_primitive_type(); | 922 | 4.31k | switch (compare_type) { | 923 | 27 | case TYPE_BOOLEAN: | 924 | 27 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 462 | case TYPE_DATEV2: | 926 | 462 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 119 | case TYPE_DATETIMEV2: | 928 | 119 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 402 | case TYPE_TIMESTAMP_NS: | 930 | 402 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 1 | case TYPE_TIMESTAMPTZ: | 932 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 74 | case TYPE_TINYINT: | 934 | 74 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 98 | case TYPE_SMALLINT: | 936 | 98 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 1.02k | case TYPE_INT: | 938 | 1.02k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 796 | case TYPE_BIGINT: | 940 | 796 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 35 | case TYPE_LARGEINT: | 942 | 35 | 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 | 124 | case TYPE_DOUBLE: | 952 | 124 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 1 | case TYPE_DECIMAL32: | 957 | 76 | case TYPE_DECIMAL64: | 958 | 161 | case TYPE_DECIMAL128I: | 959 | 178 | case TYPE_DECIMAL256: | 960 | 178 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 178 | col_with_type_and_name_right); | 962 | 32 | case TYPE_CHAR: | 963 | 212 | case TYPE_VARCHAR: | 964 | 323 | case TYPE_STRING: | 965 | 323 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 50 | default: | 967 | 50 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 50 | col_with_type_and_name_right); | 969 | 4.31k | } | 970 | 0 | return Status::OK(); | 971 | 4.31k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 11.5k | uint32_t result, size_t input_rows_count) const override { | 849 | 11.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 11.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 11.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 11.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 11.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 11.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 11.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 11.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 11.5k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 11.5k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 11.5k | right_type->get_primitive_type() == TYPE) { \ | 863 | 11.5k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 11.5k | col_right_ptr, input_rows_count); \ | 865 | 11.5k | } \ | 866 | 11.5k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 11.5k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 11.5k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 11.5k | col_right_ptr, input_rows_count); \ | 870 | 11.5k | } | 871 | | | 872 | 11.5k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 23.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 23.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 23.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 23.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 11.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 | 11.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 11.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 | | 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.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 11.5k | is_timestamp_ns_type(t); | 909 | 11.5k | }; | 910 | | | 911 | 11.5k | if (can_compare(left_type->get_primitive_type()) && | 912 | 11.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 | 9.83k | 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.83k | } | 920 | | | 921 | 11.5k | auto compare_type = left_type->get_primitive_type(); | 922 | 11.5k | 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.18k | case TYPE_DATEV2: | 926 | 2.18k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 294 | case TYPE_DATETIMEV2: | 928 | 294 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 149 | case TYPE_TIMESTAMP_NS: | 930 | 149 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 2 | case TYPE_TIMESTAMPTZ: | 932 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 2.40k | case TYPE_TINYINT: | 934 | 2.40k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 165 | case TYPE_SMALLINT: | 936 | 165 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 1.97k | case TYPE_INT: | 938 | 1.97k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 985 | case TYPE_BIGINT: | 940 | 985 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 260 | case TYPE_LARGEINT: | 942 | 260 | 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 | 129 | case TYPE_FLOAT: | 950 | 129 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 1.15k | case TYPE_DOUBLE: | 952 | 1.15k | 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 | 163 | case TYPE_DECIMAL32: | 957 | 351 | case TYPE_DECIMAL64: | 958 | 714 | case TYPE_DECIMAL128I: | 959 | 715 | case TYPE_DECIMAL256: | 960 | 715 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 715 | col_with_type_and_name_right); | 962 | 162 | case TYPE_CHAR: | 963 | 350 | case TYPE_VARCHAR: | 964 | 504 | case TYPE_STRING: | 965 | 504 | 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.5k | } | 970 | 0 | return Status::OK(); | 971 | 11.5k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 9.34k | uint32_t result, size_t input_rows_count) const override { | 849 | 9.34k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 9.34k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 9.34k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 9.34k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 9.34k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 9.34k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 9.34k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 9.34k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 9.34k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 9.34k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 9.34k | right_type->get_primitive_type() == TYPE) { \ | 863 | 9.34k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 9.34k | col_right_ptr, input_rows_count); \ | 865 | 9.34k | } \ | 866 | 9.34k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 9.34k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 9.34k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 9.34k | col_right_ptr, input_rows_count); \ | 870 | 9.34k | } | 871 | | | 872 | 9.34k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 18.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 18.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 18.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 18.6k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 9.34k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 9.34k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 9.34k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | 0 | block.get_by_position(result).column = | 891 | 0 | DataTypeUInt8() | 892 | 0 | .create_column_const(input_rows_count, | 893 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | 0 | ->convert_to_full_column_if_const(); | 895 | 0 | return Status::OK(); | 896 | | } else { | 897 | | block.get_by_position(result).column = | 898 | | DataTypeUInt8() | 899 | | .create_column_const(input_rows_count, | 900 | | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | | ->convert_to_full_column_if_const(); | 902 | | return Status::OK(); | 903 | | } | 904 | 0 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 9.34k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 9.34k | is_timestamp_ns_type(t); | 909 | 9.34k | }; | 910 | | | 911 | 9.34k | if (can_compare(left_type->get_primitive_type()) && | 912 | 9.34k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 8.46k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 8.46k | } | 920 | | | 921 | 9.34k | auto compare_type = left_type->get_primitive_type(); | 922 | 9.34k | switch (compare_type) { | 923 | 35 | case TYPE_BOOLEAN: | 924 | 35 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 562 | case TYPE_DATEV2: | 926 | 562 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 55 | case TYPE_DATETIMEV2: | 928 | 55 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 59 | case TYPE_TIMESTAMP_NS: | 930 | 59 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 2 | case TYPE_TIMESTAMPTZ: | 932 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 103 | case TYPE_TINYINT: | 934 | 103 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 119 | case TYPE_SMALLINT: | 936 | 119 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 6.59k | case TYPE_INT: | 938 | 6.59k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 704 | case TYPE_BIGINT: | 940 | 704 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 39 | case TYPE_LARGEINT: | 942 | 39 | 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 | 111 | case TYPE_DOUBLE: | 952 | 111 | 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 | 101 | case TYPE_DECIMAL64: | 958 | 171 | case TYPE_DECIMAL128I: | 959 | 183 | case TYPE_DECIMAL256: | 960 | 183 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 183 | col_with_type_and_name_right); | 962 | 31 | case TYPE_CHAR: | 963 | 160 | case TYPE_VARCHAR: | 964 | 288 | case TYPE_STRING: | 965 | 288 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 53 | default: | 967 | 53 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 53 | col_with_type_and_name_right); | 969 | 9.34k | } | 970 | 0 | return Status::OK(); | 971 | 9.34k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 40.5k | uint32_t result, size_t input_rows_count) const override { | 849 | 40.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 40.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 40.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 40.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 40.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 40.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 40.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 40.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 40.5k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 40.5k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 40.5k | right_type->get_primitive_type() == TYPE) { \ | 863 | 40.5k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 40.5k | col_right_ptr, input_rows_count); \ | 865 | 40.5k | } \ | 866 | 40.5k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 40.5k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 40.5k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 40.5k | col_right_ptr, input_rows_count); \ | 870 | 40.5k | } | 871 | | | 872 | 40.5k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 81.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 81.0k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 80.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 80.9k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 40.4k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 40.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 40.4k | col_left_untyped == col_right_untyped) { | 885 | | /// Always true: =, <=, >= | 886 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 887 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 888 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 889 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 890 | 6 | block.get_by_position(result).column = | 891 | 6 | DataTypeUInt8() | 892 | 6 | .create_column_const(input_rows_count, | 893 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) | 894 | 6 | ->convert_to_full_column_if_const(); | 895 | 6 | return Status::OK(); | 896 | | } else { | 897 | | block.get_by_position(result).column = | 898 | | DataTypeUInt8() | 899 | | .create_column_const(input_rows_count, | 900 | | Field::create_field<TYPE_BOOLEAN>(0)) | 901 | | ->convert_to_full_column_if_const(); | 902 | | return Status::OK(); | 903 | | } | 904 | 6 | } | 905 | | | 906 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 907 | 40.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 40.4k | is_timestamp_ns_type(t); | 909 | 40.4k | }; | 910 | | | 911 | 40.4k | if (can_compare(left_type->get_primitive_type()) && | 912 | 40.4k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 16.0k | 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.0k | } | 920 | | | 921 | 40.4k | auto compare_type = left_type->get_primitive_type(); | 922 | 40.4k | switch (compare_type) { | 923 | 95 | case TYPE_BOOLEAN: | 924 | 95 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 925 | 715 | case TYPE_DATEV2: | 926 | 715 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 927 | 394 | case TYPE_DATETIMEV2: | 928 | 394 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 929 | 198 | case TYPE_TIMESTAMP_NS: | 930 | 198 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 931 | 12 | case TYPE_TIMESTAMPTZ: | 932 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 933 | 6.20k | case TYPE_TINYINT: | 934 | 6.20k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 935 | 409 | case TYPE_SMALLINT: | 936 | 409 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 937 | 3.13k | case TYPE_INT: | 938 | 3.13k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 3.79k | case TYPE_BIGINT: | 940 | 3.79k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 941 | 91 | case TYPE_LARGEINT: | 942 | 91 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 943 | 12 | case TYPE_IPV4: | 944 | 12 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 945 | 17 | case TYPE_IPV6: | 946 | 17 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 947 | 2.79k | case TYPE_UUID: | 948 | 2.79k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 949 | 72 | case TYPE_FLOAT: | 950 | 72 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 893 | case TYPE_DOUBLE: | 952 | 893 | 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 | 98 | case TYPE_DECIMAL32: | 957 | 207 | case TYPE_DECIMAL64: | 958 | 1.06k | case TYPE_DECIMAL128I: | 959 | 1.08k | case TYPE_DECIMAL256: | 960 | 1.08k | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 1.08k | col_with_type_and_name_right); | 962 | 568 | case TYPE_CHAR: | 963 | 6.34k | case TYPE_VARCHAR: | 964 | 20.5k | case TYPE_STRING: | 965 | 20.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 966 | 26 | default: | 967 | 26 | return execute_generic(block, result, col_with_type_and_name_left, | 968 | 26 | col_with_type_and_name_right); | 969 | 40.4k | } | 970 | 0 | return Status::OK(); | 971 | 40.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 848 | 4.03k | uint32_t result, size_t input_rows_count) const override { | 849 | 4.03k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 850 | 4.03k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 851 | | | 852 | 4.03k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 853 | 4.03k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 854 | 4.03k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 855 | 4.03k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 856 | | | 857 | 4.03k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 858 | 4.03k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 859 | | | 860 | 4.03k | #define EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE) \ | 861 | 4.03k | if (left_type->get_primitive_type() == TYPE_TIMESTAMP_NS && \ | 862 | 4.03k | right_type->get_primitive_type() == TYPE) { \ | 863 | 4.03k | return execute_timestamp_ns_temporal<TYPE, true>(context, block, result, col_left_ptr, \ | 864 | 4.03k | col_right_ptr, input_rows_count); \ | 865 | 4.03k | } \ | 866 | 4.03k | if (left_type->get_primitive_type() == TYPE && \ | 867 | 4.03k | right_type->get_primitive_type() == TYPE_TIMESTAMP_NS) { \ | 868 | 4.03k | return execute_timestamp_ns_temporal<TYPE, false>(context, block, result, col_left_ptr, \ | 869 | 4.03k | col_right_ptr, input_rows_count); \ | 870 | 4.03k | } | 871 | | | 872 | 4.03k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATE) | 873 | 8.07k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATEV2) | 874 | 8.07k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIME) | 875 | 8.07k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_DATETIMEV2) | 876 | 8.07k | EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON(TYPE_TIMESTAMPTZ) | 877 | | | 878 | 4.03k | #undef EXECUTE_TIMESTAMP_NS_TEMPORAL_COMPARISON | 879 | | | 880 | | /// The case when arguments are the same (tautological comparison). Return constant. | 881 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 882 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 883 | 4.03k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 884 | 4.03k | 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 | 4.03k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 908 | 4.03k | is_timestamp_ns_type(t); | 909 | 4.03k | }; | 910 | | | 911 | 4.03k | if (can_compare(left_type->get_primitive_type()) && | 912 | 4.03k | can_compare(right_type->get_primitive_type())) { | 913 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 914 | 3.76k | if (!left_type->equals_ignore_precision(*right_type)) { | 915 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 916 | 0 | get_name(), left_type->get_name(), | 917 | 0 | right_type->get_name()); | 918 | 0 | } | 919 | 3.76k | } | 920 | | | 921 | 4.03k | auto compare_type = left_type->get_primitive_type(); | 922 | 4.03k | 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 | 2.50k | case TYPE_INT: | 938 | 2.50k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 939 | 992 | case TYPE_BIGINT: | 940 | 992 | 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 | 47 | case TYPE_FLOAT: | 950 | 47 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 951 | 60 | case TYPE_DOUBLE: | 952 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 953 | 0 | case TYPE_TIMEV2: | 954 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 955 | 0 | case TYPE_DECIMALV2: | 956 | 0 | case TYPE_DECIMAL32: | 957 | 67 | case TYPE_DECIMAL64: | 958 | 95 | case TYPE_DECIMAL128I: | 959 | 125 | case TYPE_DECIMAL256: | 960 | 125 | return execute_decimal(block, result, col_with_type_and_name_left, | 961 | 125 | col_with_type_and_name_right); | 962 | 1 | case TYPE_CHAR: | 963 | 44 | case TYPE_VARCHAR: | 964 | 133 | case TYPE_STRING: | 965 | 133 | 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 | 4.03k | } | 970 | 0 | return Status::OK(); | 971 | 4.03k | } |
|
972 | | }; |
973 | | |
974 | | } // namespace doris |