Coverage Report

Created: 2026-09-15 18:55

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/exec/common/join_utils.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
18
#pragma once
19
20
#include <algorithm>
21
#include <variant>
22
23
#include "exec/common/hash_table/hash_crc32_return32.h"
24
#include "exec/common/hash_table/hash_key_type.h"
25
#include "exec/common/hash_table/hash_map_context.h"
26
#include "exec/common/hash_table/join_hash_table.h"
27
#include "exec/common/join_op_utils.h" // IWYU pragma: export (JoinOpVariants/AsofIndexGroup moved there)
28
29
namespace doris {
30
31
template <typename ColumnType>
32
struct AsofColumnIntType {
33
    using type = typename ColumnType::value_type::underlying_value;
34
};
35
36
template <>
37
struct AsofColumnIntType<ColumnTimeStampNs> {
38
    using type = int64_t;
39
};
40
41
// DATETIMEV2 stores a packed civil value whose lowest field is microseconds. For a mixed
42
// TIMESTAMP_NS/DATETIMEV2 ASOF comparison, append the final three nanosecond digits to that same
43
// packed representation. The 128-bit intermediate also covers DATETIMEV2's full calendar range.
44
template <typename DateValue>
45
2
AsofMixedDateTimeKey asof_mixed_datetime_key(const DateValue& value) {
46
2
    if constexpr (requires { value.nanosecond_remainder(); }) {
47
1
        return static_cast<AsofMixedDateTimeKey>(value.to_datetime().to_date_int_val()) * 1000 +
48
1
               value.nanosecond_remainder();
49
1
    } else {
50
1
        return static_cast<AsofMixedDateTimeKey>(value.to_date_int_val()) * 1000;
51
1
    }
52
2
}
_ZN5doris23asof_mixed_datetime_keyINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEEoRKT_
Line
Count
Source
45
1
AsofMixedDateTimeKey asof_mixed_datetime_key(const DateValue& value) {
46
    if constexpr (requires { value.nanosecond_remainder(); }) {
47
        return static_cast<AsofMixedDateTimeKey>(value.to_datetime().to_date_int_val()) * 1000 +
48
               value.nanosecond_remainder();
49
1
    } else {
50
1
        return static_cast<AsofMixedDateTimeKey>(value.to_date_int_val()) * 1000;
51
1
    }
52
1
}
_ZN5doris23asof_mixed_datetime_keyINS_16TimeStampNsValueEEEoRKT_
Line
Count
Source
45
1
AsofMixedDateTimeKey asof_mixed_datetime_key(const DateValue& value) {
46
1
    if constexpr (requires { value.nanosecond_remainder(); }) {
47
1
        return static_cast<AsofMixedDateTimeKey>(value.to_datetime().to_date_int_val()) * 1000 +
48
1
               value.nanosecond_remainder();
49
    } else {
50
        return static_cast<AsofMixedDateTimeKey>(value.to_date_int_val()) * 1000;
51
    }
52
1
}
Unexecuted instantiation: _ZN5doris23asof_mixed_datetime_keyINS_11DateV2ValueINS_15DateV2ValueTypeEEEEEoRKT_
Unexecuted instantiation: _ZN5doris23asof_mixed_datetime_keyINS_16TimestampTzValueEEEoRKT_
53
54
// Devirtualize compare_at for ASOF JOIN supported column types.
55
// ASOF JOIN only supports DateV2, DateTimeV2, TimestampNs, and TimestampTZ.
56
// Dispatches to the concrete ColumnVector<T> once so that all compare_at
57
// calls inside `func` are direct (non-virtual) calls.
58
// `func` receives a single argument: a const pointer to the concrete column
59
// (or const IColumn* as fallback for unexpected types).
60
template <typename Func>
61
517
decltype(auto) asof_column_dispatch(const IColumn* col, Func&& func) {
62
517
    if (const auto* c_dv2 = check_and_get_column<ColumnDateV2>(col)) {
63
1
        return std::forward<Func>(func)(c_dv2);
64
516
    } else if (const auto* c_dtv2 = check_and_get_column<ColumnDateTimeV2>(col)) {
65
515
        return std::forward<Func>(func)(c_dtv2);
66
515
    } else if (const auto* c_tsns = check_and_get_column<ColumnTimeStampNs>(col)) {
67
0
        return std::forward<Func>(func)(c_tsns);
68
2
    } else if (const auto* c_tstz = check_and_get_column<ColumnTimeStampTz>(col)) {
69
2
        return std::forward<Func>(func)(c_tstz);
70
18.4E
    } else {
71
18.4E
        return std::forward<Func>(func)(col);
72
18.4E
    }
73
517
}
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_16MethodSerializedINS_13JoinHashTableINS_9StringRefENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectIhNS_13JoinHashTableIhNS_17HashCRC32Return32IhEELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectItNS_13JoinHashTableItNS_17HashCRC32Return32ItEELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectIjNS_13JoinHashTableIjNS_17HashCRC32Return32IjEELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectImNS_13JoinHashTableImNS_17HashCRC32Return32ImEELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectIN4wide7integerILm128EjEENS_13JoinHashTableIS7_NS_17HashCRC32Return32IS7_EELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodOneNumberIhNS_13JoinHashTableIhNS_17HashCRC32Return32IhEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodOneNumberItNS_13JoinHashTableItNS_17HashCRC32Return32ItEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodOneNumberIjNS_13JoinHashTableIjNS_17HashCRC32Return32IjEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodOneNumberImNS_13JoinHashTableImNS_17HashCRC32Return32ImEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodOneNumberIN4wide7integerILm128EjEENS_13JoinHashTableIS7_NS_17HashCRC32Return32IS7_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodOneNumberIN4wide7integerILm256EjEENS_13JoinHashTableIS7_NS_17HashCRC32Return32IS7_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableImNS_17HashCRC32Return32ImEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableINS_6UInt72ENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableINS_6UInt96ENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableINS_7UInt104ENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableIN4wide7integerILm128EjEENS_17HashCRC32Return32IS8_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableINS_7UInt136ENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableIN4wide7integerILm256EjEENS_17HashCRC32Return32IS8_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi12EE26_find_batch_asof_optimizedINS_19MethodStringNoCacheINS_13JoinHashTableINS_9StringRefENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_16MethodSerializedINS_13JoinHashTableINS_9StringRefENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectIhNS_13JoinHashTableIhNS_17HashCRC32Return32IhEELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectItNS_13JoinHashTableItNS_17HashCRC32Return32ItEELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectIjNS_13JoinHashTableIjNS_17HashCRC32Return32IjEELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectImNS_13JoinHashTableImNS_17HashCRC32Return32ImEELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_21MethodOneNumberDirectIN4wide7integerILm128EjEENS_13JoinHashTableIS7_NS_17HashCRC32Return32IS7_EELb1EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodOneNumberIhNS_13JoinHashTableIhNS_17HashCRC32Return32IhEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodOneNumberItNS_13JoinHashTableItNS_17HashCRC32Return32ItEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodOneNumberIjNS_13JoinHashTableIjNS_17HashCRC32Return32IjEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodOneNumberImNS_13JoinHashTableImNS_17HashCRC32Return32ImEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodOneNumberIN4wide7integerILm128EjEENS_13JoinHashTableIS7_NS_17HashCRC32Return32IS7_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodOneNumberIN4wide7integerILm256EjEENS_13JoinHashTableIS7_NS_17HashCRC32Return32IS7_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableImNS_17HashCRC32Return32ImEELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISG_EEE_clESJ_EUlPKSA_E_EEDcPKNS_7IColumnEOSA_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableINS_6UInt72ENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableINS_6UInt96ENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableINS_7UInt104ENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableIN4wide7integerILm128EjEENS_17HashCRC32Return32IS8_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableINS_7UInt136ENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_15MethodKeysFixedINS_13JoinHashTableIN4wide7integerILm256EjEENS_17HashCRC32Return32IS8_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISJ_EEE_clESM_EUlPKSD_E_EEDcPKNS_7IColumnEOSD_
Unexecuted instantiation: _ZN5doris20asof_column_dispatchIZZNS_21ProcessHashTableProbeILi14EE26_find_batch_asof_optimizedINS_19MethodStringNoCacheINS_13JoinHashTableINS_9StringRefENS_17HashCRC32Return32IS6_EELb0EEEEEEEjRT_PKhjENKUlRSt6vectorINS_14AsofIndexGroupIoEESaISH_EEE_clESK_EUlPKSB_E_EEDcPKNS_7IColumnEOSB_
hashjoin_build_sink.cpp:_ZN5doris20asof_column_dispatchIZNS_27HashJoinBuildSinkLocalState16build_asof_indexERNS_5BlockEE3$_2EEDcPKNS_7IColumnEOT_
Line
Count
Source
61
517
decltype(auto) asof_column_dispatch(const IColumn* col, Func&& func) {
62
517
    if (const auto* c_dv2 = check_and_get_column<ColumnDateV2>(col)) {
63
1
        return std::forward<Func>(func)(c_dv2);
64
516
    } else if (const auto* c_dtv2 = check_and_get_column<ColumnDateTimeV2>(col)) {
65
515
        return std::forward<Func>(func)(c_dtv2);
66
515
    } else if (const auto* c_tsns = check_and_get_column<ColumnTimeStampNs>(col)) {
67
0
        return std::forward<Func>(func)(c_tsns);
68
2
    } else if (const auto* c_tstz = check_and_get_column<ColumnTimeStampTz>(col)) {
69
2
        return std::forward<Func>(func)(c_tstz);
70
18.4E
    } else {
71
18.4E
        return std::forward<Func>(func)(col);
72
18.4E
    }
73
517
}
74
template <class T>
75
using PrimaryTypeHashTableContext = MethodOneNumber<T, JoinHashMap<T, HashCRC32Return32<T>, false>>;
76
77
template <class T>
78
using DirectPrimaryTypeHashTableContext =
79
        MethodOneNumberDirect<T, JoinHashMap<T, HashCRC32Return32<T>, true>>;
80
81
template <class Key>
82
using FixedKeyHashTableContext = MethodKeysFixed<JoinHashMap<Key, HashCRC32Return32<Key>, false>>;
83
84
using SerializedHashTableContext =
85
        MethodSerialized<JoinHashMap<StringRef, HashCRC32Return32<StringRef>, false>>;
86
using MethodOneString =
87
        MethodStringNoCache<JoinHashMap<StringRef, HashCRC32Return32<StringRef>, false>>;
88
89
using HashTableVariants = std::variant<
90
        std::monostate, SerializedHashTableContext, PrimaryTypeHashTableContext<UInt8>,
91
        PrimaryTypeHashTableContext<UInt16>, PrimaryTypeHashTableContext<UInt32>,
92
        PrimaryTypeHashTableContext<UInt64>, PrimaryTypeHashTableContext<UInt128>,
93
        PrimaryTypeHashTableContext<UInt256>, DirectPrimaryTypeHashTableContext<UInt8>,
94
        DirectPrimaryTypeHashTableContext<UInt16>, DirectPrimaryTypeHashTableContext<UInt32>,
95
        DirectPrimaryTypeHashTableContext<UInt64>, DirectPrimaryTypeHashTableContext<UInt128>,
96
        FixedKeyHashTableContext<UInt64>, FixedKeyHashTableContext<UInt72>,
97
        FixedKeyHashTableContext<UInt96>, FixedKeyHashTableContext<UInt104>,
98
        FixedKeyHashTableContext<UInt128>, FixedKeyHashTableContext<UInt136>,
99
        FixedKeyHashTableContext<UInt256>, MethodOneString>;
100
101
struct JoinDataVariants {
102
    HashTableVariants method_variant;
103
104
91.5k
    void init(const std::vector<DataTypePtr>& data_types, HashKeyType type) {
105
91.5k
        switch (type) {
106
14.5k
        case HashKeyType::serialized:
107
14.5k
            method_variant.emplace<SerializedHashTableContext>();
108
14.5k
            break;
109
1.18k
        case HashKeyType::int8_key:
110
1.18k
            method_variant.emplace<PrimaryTypeHashTableContext<UInt8>>();
111
1.18k
            break;
112
648
        case HashKeyType::int16_key:
113
648
            method_variant.emplace<PrimaryTypeHashTableContext<UInt16>>();
114
648
            break;
115
28.2k
        case HashKeyType::int32_key:
116
28.2k
            method_variant.emplace<PrimaryTypeHashTableContext<UInt32>>();
117
28.2k
            break;
118
8.41k
        case HashKeyType::int64_key:
119
8.41k
            method_variant.emplace<PrimaryTypeHashTableContext<UInt64>>();
120
8.41k
            break;
121
856
        case HashKeyType::int128_key:
122
856
            method_variant.emplace<PrimaryTypeHashTableContext<UInt128>>();
123
856
            break;
124
27
        case HashKeyType::int256_key:
125
27
            method_variant.emplace<PrimaryTypeHashTableContext<UInt256>>();
126
27
            break;
127
1.67k
        case HashKeyType::string_key:
128
1.67k
            method_variant.emplace<MethodOneString>();
129
1.67k
            break;
130
7.63k
        case HashKeyType::fixed64:
131
7.63k
            method_variant.emplace<FixedKeyHashTableContext<UInt64>>(get_key_sizes(data_types));
132
7.63k
            break;
133
3.24k
        case HashKeyType::fixed72:
134
3.24k
            method_variant.emplace<FixedKeyHashTableContext<UInt72>>(get_key_sizes(data_types));
135
3.24k
            break;
136
8.04k
        case HashKeyType::fixed96:
137
8.04k
            method_variant.emplace<FixedKeyHashTableContext<UInt96>>(get_key_sizes(data_types));
138
8.04k
            break;
139
30
        case HashKeyType::fixed104:
140
30
            method_variant.emplace<FixedKeyHashTableContext<UInt104>>(get_key_sizes(data_types));
141
30
            break;
142
8.11k
        case HashKeyType::fixed128:
143
8.11k
            method_variant.emplace<FixedKeyHashTableContext<UInt128>>(get_key_sizes(data_types));
144
8.11k
            break;
145
960
        case HashKeyType::fixed136:
146
960
            method_variant.emplace<FixedKeyHashTableContext<UInt136>>(get_key_sizes(data_types));
147
960
            break;
148
7.94k
        case HashKeyType::fixed256:
149
7.94k
            method_variant.emplace<FixedKeyHashTableContext<UInt256>>(get_key_sizes(data_types));
150
7.94k
            break;
151
0
        default:
152
0
            throw Exception(ErrorCode::INTERNAL_ERROR,
153
0
                            "JoinDataVariants meet invalid key type, type={}", type);
154
91.5k
        }
155
91.5k
    }
156
};
157
158
template <typename Method>
159
void primary_to_direct_mapping(Method* context, const ColumnRawPtrs& key_columns,
160
30.1k
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
30.1k
    using FieldType = typename Method::Base::Key;
162
30.1k
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
30.1k
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
30.1k
    size_t num_rows = key_columns[0]->size();
166
30.1k
    if (is_column_nullable(*key_columns[0])) {
167
0
        const FieldType* input_keys = (FieldType*)assert_cast<const ColumnNullable*>(key_columns[0])
168
0
                                              ->get_nested_column_ptr()
169
0
                                              ->get_raw_data()
170
0
                                              .data;
171
0
        const NullMap& null_map =
172
0
                assert_cast<const ColumnNullable*>(key_columns[0])->get_null_map_data();
173
        // skip first mocked row
174
0
        for (size_t i = 1; i < num_rows; i++) {
175
0
            if (null_map[i]) {
176
0
                continue;
177
0
            }
178
0
            max_key = std::max(max_key, input_keys[i]);
179
0
            min_key = std::min(min_key, input_keys[i]);
180
0
        }
181
30.1k
    } else {
182
30.1k
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
17.1M
        for (size_t i = 1; i < num_rows; i++) {
185
17.1M
            max_key = std::max(max_key, input_keys[i]);
186
17.1M
            min_key = std::min(min_key, input_keys[i]);
187
17.1M
        }
188
30.1k
    }
189
190
30.1k
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
30.1k
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
30.1k
    if (allow_direct_mapping) {
193
30.5k
        for (const auto& variant_ptr : variant_ptrs) {
194
30.5k
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
30.5k
                    max_key, min_key);
196
30.5k
        }
197
21.9k
    }
198
30.1k
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberIhNS_13JoinHashTableIhNS_17HashCRC32Return32IhEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
160
1.06k
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
1.06k
    using FieldType = typename Method::Base::Key;
162
1.06k
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
1.06k
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
1.06k
    size_t num_rows = key_columns[0]->size();
166
1.06k
    if (is_column_nullable(*key_columns[0])) {
167
0
        const FieldType* input_keys = (FieldType*)assert_cast<const ColumnNullable*>(key_columns[0])
168
0
                                              ->get_nested_column_ptr()
169
0
                                              ->get_raw_data()
170
0
                                              .data;
171
0
        const NullMap& null_map =
172
0
                assert_cast<const ColumnNullable*>(key_columns[0])->get_null_map_data();
173
        // skip first mocked row
174
0
        for (size_t i = 1; i < num_rows; i++) {
175
0
            if (null_map[i]) {
176
0
                continue;
177
0
            }
178
0
            max_key = std::max(max_key, input_keys[i]);
179
0
            min_key = std::min(min_key, input_keys[i]);
180
0
        }
181
1.06k
    } else {
182
1.06k
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
3.58k
        for (size_t i = 1; i < num_rows; i++) {
185
2.51k
            max_key = std::max(max_key, input_keys[i]);
186
2.51k
            min_key = std::min(min_key, input_keys[i]);
187
2.51k
        }
188
1.06k
    }
189
190
1.06k
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
1.06k
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
1.06k
    if (allow_direct_mapping) {
193
956
        for (const auto& variant_ptr : variant_ptrs) {
194
956
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
956
                    max_key, min_key);
196
956
        }
197
846
    }
198
1.06k
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberItNS_13JoinHashTableItNS_17HashCRC32Return32ItEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
160
572
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
572
    using FieldType = typename Method::Base::Key;
162
572
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
572
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
572
    size_t num_rows = key_columns[0]->size();
166
572
    if (is_column_nullable(*key_columns[0])) {
167
0
        const FieldType* input_keys = (FieldType*)assert_cast<const ColumnNullable*>(key_columns[0])
168
0
                                              ->get_nested_column_ptr()
169
0
                                              ->get_raw_data()
170
0
                                              .data;
171
0
        const NullMap& null_map =
172
0
                assert_cast<const ColumnNullable*>(key_columns[0])->get_null_map_data();
173
        // skip first mocked row
174
0
        for (size_t i = 1; i < num_rows; i++) {
175
0
            if (null_map[i]) {
176
0
                continue;
177
0
            }
178
0
            max_key = std::max(max_key, input_keys[i]);
179
0
            min_key = std::min(min_key, input_keys[i]);
180
0
        }
181
572
    } else {
182
572
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
4.67k
        for (size_t i = 1; i < num_rows; i++) {
185
4.10k
            max_key = std::max(max_key, input_keys[i]);
186
4.10k
            min_key = std::min(min_key, input_keys[i]);
187
4.10k
        }
188
572
    }
189
190
572
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
572
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
572
    if (allow_direct_mapping) {
193
596
        for (const auto& variant_ptr : variant_ptrs) {
194
596
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
596
                    max_key, min_key);
196
596
        }
197
520
    }
198
572
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberIjNS_13JoinHashTableIjNS_17HashCRC32Return32IjEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
160
20.8k
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
20.8k
    using FieldType = typename Method::Base::Key;
162
20.8k
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
20.8k
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
20.8k
    size_t num_rows = key_columns[0]->size();
166
20.8k
    if (is_column_nullable(*key_columns[0])) {
167
0
        const FieldType* input_keys = (FieldType*)assert_cast<const ColumnNullable*>(key_columns[0])
168
0
                                              ->get_nested_column_ptr()
169
0
                                              ->get_raw_data()
170
0
                                              .data;
171
0
        const NullMap& null_map =
172
0
                assert_cast<const ColumnNullable*>(key_columns[0])->get_null_map_data();
173
        // skip first mocked row
174
0
        for (size_t i = 1; i < num_rows; i++) {
175
0
            if (null_map[i]) {
176
0
                continue;
177
0
            }
178
0
            max_key = std::max(max_key, input_keys[i]);
179
0
            min_key = std::min(min_key, input_keys[i]);
180
0
        }
181
20.8k
    } else {
182
20.8k
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
16.8M
        for (size_t i = 1; i < num_rows; i++) {
185
16.8M
            max_key = std::max(max_key, input_keys[i]);
186
16.8M
            min_key = std::min(min_key, input_keys[i]);
187
16.8M
        }
188
20.8k
    }
189
190
20.8k
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
20.8k
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
20.8k
    if (allow_direct_mapping) {
193
22.6k
        for (const auto& variant_ptr : variant_ptrs) {
194
22.6k
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
22.6k
                    max_key, min_key);
196
22.6k
        }
197
15.5k
    }
198
20.8k
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberImNS_13JoinHashTableImNS_17HashCRC32Return32ImEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
160
7.06k
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
7.06k
    using FieldType = typename Method::Base::Key;
162
7.06k
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
7.06k
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
7.06k
    size_t num_rows = key_columns[0]->size();
166
7.06k
    if (is_column_nullable(*key_columns[0])) {
167
0
        const FieldType* input_keys = (FieldType*)assert_cast<const ColumnNullable*>(key_columns[0])
168
0
                                              ->get_nested_column_ptr()
169
0
                                              ->get_raw_data()
170
0
                                              .data;
171
0
        const NullMap& null_map =
172
0
                assert_cast<const ColumnNullable*>(key_columns[0])->get_null_map_data();
173
        // skip first mocked row
174
0
        for (size_t i = 1; i < num_rows; i++) {
175
0
            if (null_map[i]) {
176
0
                continue;
177
0
            }
178
0
            max_key = std::max(max_key, input_keys[i]);
179
0
            min_key = std::min(min_key, input_keys[i]);
180
0
        }
181
7.06k
    } else {
182
7.06k
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
244k
        for (size_t i = 1; i < num_rows; i++) {
185
237k
            max_key = std::max(max_key, input_keys[i]);
186
237k
            min_key = std::min(min_key, input_keys[i]);
187
237k
        }
188
7.06k
    }
189
190
7.06k
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
7.06k
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
7.06k
    if (allow_direct_mapping) {
193
5.77k
        for (const auto& variant_ptr : variant_ptrs) {
194
5.77k
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
5.77k
                    max_key, min_key);
196
5.77k
        }
197
4.54k
    }
198
7.06k
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberIN4wide7integerILm128EjEENS_13JoinHashTableIS4_NS_17HashCRC32Return32IS4_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISF_EERKSC_ISt10shared_ptrINS_16JoinDataVariantsEESaISM_EE
Line
Count
Source
160
633
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
633
    using FieldType = typename Method::Base::Key;
162
633
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
633
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
633
    size_t num_rows = key_columns[0]->size();
166
633
    if (is_column_nullable(*key_columns[0])) {
167
0
        const FieldType* input_keys = (FieldType*)assert_cast<const ColumnNullable*>(key_columns[0])
168
0
                                              ->get_nested_column_ptr()
169
0
                                              ->get_raw_data()
170
0
                                              .data;
171
0
        const NullMap& null_map =
172
0
                assert_cast<const ColumnNullable*>(key_columns[0])->get_null_map_data();
173
        // skip first mocked row
174
0
        for (size_t i = 1; i < num_rows; i++) {
175
0
            if (null_map[i]) {
176
0
                continue;
177
0
            }
178
0
            max_key = std::max(max_key, input_keys[i]);
179
0
            min_key = std::min(min_key, input_keys[i]);
180
0
        }
181
633
    } else {
182
633
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
1.74k
        for (size_t i = 1; i < num_rows; i++) {
185
1.11k
            max_key = std::max(max_key, input_keys[i]);
186
1.11k
            min_key = std::min(min_key, input_keys[i]);
187
1.11k
        }
188
633
    }
189
190
633
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
633
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
633
    if (allow_direct_mapping) {
193
621
        for (const auto& variant_ptr : variant_ptrs) {
194
621
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
621
                    max_key, min_key);
196
621
        }
197
431
    }
198
633
}
199
200
template <typename Method>
201
void try_convert_to_direct_mapping(
202
        Method* method, const ColumnRawPtrs& key_columns,
203
50.4k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
Unexecuted instantiation: _ZN5doris29try_convert_to_direct_mappingISt9monostateEEvPT_RKSt6vectorIPKNS_7IColumnESaIS7_EERKS4_ISt10shared_ptrINS_16JoinDataVariantsEESaISE_EE
_ZN5doris29try_convert_to_direct_mappingINS_16MethodSerializedINS_13JoinHashTableINS_9StringRefENS_17HashCRC32Return32IS3_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISD_EERKSA_ISt10shared_ptrINS_16JoinDataVariantsEESaISK_EE
Line
Count
Source
203
14.4k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
_ZN5doris29try_convert_to_direct_mappingINS_15MethodOneNumberIN4wide7integerILm256EjEENS_13JoinHashTableIS4_NS_17HashCRC32Return32IS4_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISF_EERKSC_ISt10shared_ptrINS_16JoinDataVariantsEESaISM_EE
Line
Count
Source
203
13
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
Unexecuted instantiation: _ZN5doris29try_convert_to_direct_mappingINS_21MethodOneNumberDirectIhNS_13JoinHashTableIhNS_17HashCRC32Return32IhEELb1EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Unexecuted instantiation: _ZN5doris29try_convert_to_direct_mappingINS_21MethodOneNumberDirectItNS_13JoinHashTableItNS_17HashCRC32Return32ItEELb1EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Unexecuted instantiation: _ZN5doris29try_convert_to_direct_mappingINS_21MethodOneNumberDirectIjNS_13JoinHashTableIjNS_17HashCRC32Return32IjEELb1EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Unexecuted instantiation: _ZN5doris29try_convert_to_direct_mappingINS_21MethodOneNumberDirectImNS_13JoinHashTableImNS_17HashCRC32Return32ImEELb1EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Unexecuted instantiation: _ZN5doris29try_convert_to_direct_mappingINS_21MethodOneNumberDirectIN4wide7integerILm128EjEENS_13JoinHashTableIS4_NS_17HashCRC32Return32IS4_EELb1EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISF_EERKSC_ISt10shared_ptrINS_16JoinDataVariantsEESaISM_EE
_ZN5doris29try_convert_to_direct_mappingINS_15MethodKeysFixedINS_13JoinHashTableImNS_17HashCRC32Return32ImEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
203
6.52k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
_ZN5doris29try_convert_to_direct_mappingINS_15MethodKeysFixedINS_13JoinHashTableINS_6UInt72ENS_17HashCRC32Return32IS3_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISD_EERKSA_ISt10shared_ptrINS_16JoinDataVariantsEESaISK_EE
Line
Count
Source
203
3.24k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
_ZN5doris29try_convert_to_direct_mappingINS_15MethodKeysFixedINS_13JoinHashTableINS_6UInt96ENS_17HashCRC32Return32IS3_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISD_EERKSA_ISt10shared_ptrINS_16JoinDataVariantsEESaISK_EE
Line
Count
Source
203
8.04k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
_ZN5doris29try_convert_to_direct_mappingINS_15MethodKeysFixedINS_13JoinHashTableINS_7UInt104ENS_17HashCRC32Return32IS3_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISD_EERKSA_ISt10shared_ptrINS_16JoinDataVariantsEESaISK_EE
Line
Count
Source
203
30
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
_ZN5doris29try_convert_to_direct_mappingINS_15MethodKeysFixedINS_13JoinHashTableIN4wide7integerILm128EjEENS_17HashCRC32Return32IS5_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISF_EERKSC_ISt10shared_ptrINS_16JoinDataVariantsEESaISM_EE
Line
Count
Source
203
8.06k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
_ZN5doris29try_convert_to_direct_mappingINS_15MethodKeysFixedINS_13JoinHashTableINS_7UInt136ENS_17HashCRC32Return32IS3_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISD_EERKSA_ISt10shared_ptrINS_16JoinDataVariantsEESaISK_EE
Line
Count
Source
203
960
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
_ZN5doris29try_convert_to_direct_mappingINS_15MethodKeysFixedINS_13JoinHashTableIN4wide7integerILm256EjEENS_17HashCRC32Return32IS5_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISF_EERKSC_ISt10shared_ptrINS_16JoinDataVariantsEESaISM_EE
Line
Count
Source
203
7.94k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
_ZN5doris29try_convert_to_direct_mappingINS_19MethodStringNoCacheINS_13JoinHashTableINS_9StringRefENS_17HashCRC32Return32IS3_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISD_EERKSA_ISt10shared_ptrINS_16JoinDataVariantsEESaISK_EE
Line
Count
Source
203
1.16k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {}
204
205
inline void try_convert_to_direct_mapping(
206
        PrimaryTypeHashTableContext<UInt8>* context, const ColumnRawPtrs& key_columns,
207
1.06k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
208
1.06k
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
209
1.06k
}
210
211
inline void try_convert_to_direct_mapping(
212
        PrimaryTypeHashTableContext<UInt16>* context, const ColumnRawPtrs& key_columns,
213
572
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
214
572
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
215
572
}
216
217
inline void try_convert_to_direct_mapping(
218
        PrimaryTypeHashTableContext<UInt32>* context, const ColumnRawPtrs& key_columns,
219
20.8k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
220
20.8k
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
221
20.8k
}
222
223
inline void try_convert_to_direct_mapping(
224
        PrimaryTypeHashTableContext<UInt64>* context, const ColumnRawPtrs& key_columns,
225
7.06k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
226
7.06k
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
227
7.06k
}
228
229
inline void try_convert_to_direct_mapping(
230
        PrimaryTypeHashTableContext<UInt128>* context, const ColumnRawPtrs& key_columns,
231
633
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
232
633
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
233
633
}
234
235
} // namespace doris