Coverage Report

Created: 2026-08-26 11:06

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
1.18k
decltype(auto) asof_column_dispatch(const IColumn* col, Func&& func) {
62
1.18k
    if (const auto* c_dv2 = check_and_get_column<ColumnDateV2>(col)) {
63
16
        return std::forward<Func>(func)(c_dv2);
64
1.16k
    } else if (const auto* c_dtv2 = check_and_get_column<ColumnDateTimeV2>(col)) {
65
1.12k
        return std::forward<Func>(func)(c_dtv2);
66
1.12k
    } else if (const auto* c_tsns = check_and_get_column<ColumnTimeStampNs>(col)) {
67
27
        return std::forward<Func>(func)(c_tsns);
68
27
    } else if (const auto* c_tstz = check_and_get_column<ColumnTimeStampTz>(col)) {
69
16
        return std::forward<Func>(func)(c_tstz);
70
16
    } else {
71
2
        return std::forward<Func>(func)(col);
72
2
    }
73
1.18k
}
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
1.18k
decltype(auto) asof_column_dispatch(const IColumn* col, Func&& func) {
62
1.18k
    if (const auto* c_dv2 = check_and_get_column<ColumnDateV2>(col)) {
63
16
        return std::forward<Func>(func)(c_dv2);
64
1.16k
    } else if (const auto* c_dtv2 = check_and_get_column<ColumnDateTimeV2>(col)) {
65
1.12k
        return std::forward<Func>(func)(c_dtv2);
66
1.12k
    } else if (const auto* c_tsns = check_and_get_column<ColumnTimeStampNs>(col)) {
67
27
        return std::forward<Func>(func)(c_tsns);
68
27
    } else if (const auto* c_tstz = check_and_get_column<ColumnTimeStampTz>(col)) {
69
16
        return std::forward<Func>(func)(c_tstz);
70
16
    } else {
71
2
        return std::forward<Func>(func)(col);
72
2
    }
73
1.18k
}
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
88.5k
    void init(const std::vector<DataTypePtr>& data_types, HashKeyType type) {
105
88.5k
        switch (type) {
106
14.6k
        case HashKeyType::serialized:
107
14.6k
            method_variant.emplace<SerializedHashTableContext>();
108
14.6k
            break;
109
1.80k
        case HashKeyType::int8_key:
110
1.80k
            method_variant.emplace<PrimaryTypeHashTableContext<UInt8>>();
111
1.80k
            break;
112
1.16k
        case HashKeyType::int16_key:
113
1.16k
            method_variant.emplace<PrimaryTypeHashTableContext<UInt16>>();
114
1.16k
            break;
115
21.2k
        case HashKeyType::int32_key:
116
21.2k
            method_variant.emplace<PrimaryTypeHashTableContext<UInt32>>();
117
21.2k
            break;
118
10.9k
        case HashKeyType::int64_key:
119
10.9k
            method_variant.emplace<PrimaryTypeHashTableContext<UInt64>>();
120
10.9k
            break;
121
730
        case HashKeyType::int128_key:
122
730
            method_variant.emplace<PrimaryTypeHashTableContext<UInt128>>();
123
730
            break;
124
26
        case HashKeyType::int256_key:
125
26
            method_variant.emplace<PrimaryTypeHashTableContext<UInt256>>();
126
26
            break;
127
1.78k
        case HashKeyType::string_key:
128
1.78k
            method_variant.emplace<MethodOneString>();
129
1.78k
            break;
130
7.71k
        case HashKeyType::fixed64:
131
7.71k
            method_variant.emplace<FixedKeyHashTableContext<UInt64>>(get_key_sizes(data_types));
132
7.71k
            break;
133
3.25k
        case HashKeyType::fixed72:
134
3.25k
            method_variant.emplace<FixedKeyHashTableContext<UInt72>>(get_key_sizes(data_types));
135
3.25k
            break;
136
8.14k
        case HashKeyType::fixed96:
137
8.14k
            method_variant.emplace<FixedKeyHashTableContext<UInt96>>(get_key_sizes(data_types));
138
8.14k
            break;
139
45
        case HashKeyType::fixed104:
140
45
            method_variant.emplace<FixedKeyHashTableContext<UInt104>>(get_key_sizes(data_types));
141
45
            break;
142
8.12k
        case HashKeyType::fixed128:
143
8.12k
            method_variant.emplace<FixedKeyHashTableContext<UInt128>>(get_key_sizes(data_types));
144
8.12k
            break;
145
960
        case HashKeyType::fixed136:
146
960
            method_variant.emplace<FixedKeyHashTableContext<UInt136>>(get_key_sizes(data_types));
147
960
            break;
148
7.97k
        case HashKeyType::fixed256:
149
7.97k
            method_variant.emplace<FixedKeyHashTableContext<UInt256>>(get_key_sizes(data_types));
150
7.97k
            break;
151
0
        default:
152
0
            throw Exception(ErrorCode::INTERNAL_ERROR,
153
0
                            "JoinDataVariants meet invalid key type, type={}", type);
154
88.5k
        }
155
88.5k
    }
156
};
157
158
template <typename Method>
159
void primary_to_direct_mapping(Method* context, const ColumnRawPtrs& key_columns,
160
28.0k
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
28.0k
    using FieldType = typename Method::Base::Key;
162
28.0k
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
28.0k
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
28.0k
    size_t num_rows = key_columns[0]->size();
166
28.0k
    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
28.0k
    } else {
182
28.0k
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
18.4M
        for (size_t i = 1; i < num_rows; i++) {
185
18.3M
            max_key = std::max(max_key, input_keys[i]);
186
18.3M
            min_key = std::min(min_key, input_keys[i]);
187
18.3M
        }
188
28.0k
    }
189
190
28.0k
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
28.0k
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
28.0k
    if (allow_direct_mapping) {
193
28.1k
        for (const auto& variant_ptr : variant_ptrs) {
194
28.1k
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
28.1k
                    max_key, min_key);
196
28.1k
        }
197
20.8k
    }
198
28.0k
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberIhNS_13JoinHashTableIhNS_17HashCRC32Return32IhEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
160
1.28k
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
1.28k
    using FieldType = typename Method::Base::Key;
162
1.28k
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
1.28k
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
1.28k
    size_t num_rows = key_columns[0]->size();
166
1.28k
    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.28k
    } else {
182
1.28k
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
3.71k
        for (size_t i = 1; i < num_rows; i++) {
185
2.42k
            max_key = std::max(max_key, input_keys[i]);
186
2.42k
            min_key = std::min(min_key, input_keys[i]);
187
2.42k
        }
188
1.28k
    }
189
190
1.28k
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
1.28k
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
1.28k
    if (allow_direct_mapping) {
193
1.38k
        for (const auto& variant_ptr : variant_ptrs) {
194
1.38k
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
1.38k
                    max_key, min_key);
196
1.38k
        }
197
891
    }
198
1.28k
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberItNS_13JoinHashTableItNS_17HashCRC32Return32ItEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
160
690
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
690
    using FieldType = typename Method::Base::Key;
162
690
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
690
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
690
    size_t num_rows = key_columns[0]->size();
166
690
    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
690
    } else {
182
690
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
3.85k
        for (size_t i = 1; i < num_rows; i++) {
185
3.16k
            max_key = std::max(max_key, input_keys[i]);
186
3.16k
            min_key = std::min(min_key, input_keys[i]);
187
3.16k
        }
188
690
    }
189
190
690
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
690
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
690
    if (allow_direct_mapping) {
193
981
        for (const auto& variant_ptr : variant_ptrs) {
194
981
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
981
                    max_key, min_key);
196
981
        }
197
514
    }
198
690
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberIjNS_13JoinHashTableIjNS_17HashCRC32Return32IjEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
160
16.8k
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
16.8k
    using FieldType = typename Method::Base::Key;
162
16.8k
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
16.8k
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
16.8k
    size_t num_rows = key_columns[0]->size();
166
16.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
16.8k
    } else {
182
16.8k
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
18.1M
        for (size_t i = 1; i < num_rows; i++) {
185
18.1M
            max_key = std::max(max_key, input_keys[i]);
186
18.1M
            min_key = std::min(min_key, input_keys[i]);
187
18.1M
        }
188
16.8k
    }
189
190
16.8k
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
16.8k
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
16.8k
    if (allow_direct_mapping) {
193
18.7k
        for (const auto& variant_ptr : variant_ptrs) {
194
18.7k
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
18.7k
                    max_key, min_key);
196
18.7k
        }
197
14.4k
    }
198
16.8k
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberImNS_13JoinHashTableImNS_17HashCRC32Return32ImEELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISC_EERKS9_ISt10shared_ptrINS_16JoinDataVariantsEESaISJ_EE
Line
Count
Source
160
8.71k
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
8.71k
    using FieldType = typename Method::Base::Key;
162
8.71k
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
8.71k
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
8.71k
    size_t num_rows = key_columns[0]->size();
166
8.71k
    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
8.71k
    } else {
182
8.71k
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
270k
        for (size_t i = 1; i < num_rows; i++) {
185
262k
            max_key = std::max(max_key, input_keys[i]);
186
262k
            min_key = std::min(min_key, input_keys[i]);
187
262k
        }
188
8.71k
    }
189
190
8.71k
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
8.71k
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
8.71k
    if (allow_direct_mapping) {
193
6.51k
        for (const auto& variant_ptr : variant_ptrs) {
194
6.51k
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
6.51k
                    max_key, min_key);
196
6.51k
        }
197
4.52k
    }
198
8.71k
}
_ZN5doris25primary_to_direct_mappingINS_15MethodOneNumberIN4wide7integerILm128EjEENS_13JoinHashTableIS4_NS_17HashCRC32Return32IS4_EELb0EEEEEEEvPT_RKSt6vectorIPKNS_7IColumnESaISF_EERKSC_ISt10shared_ptrINS_16JoinDataVariantsEESaISM_EE
Line
Count
Source
160
538
                               const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
161
538
    using FieldType = typename Method::Base::Key;
162
538
    FieldType max_key = std::numeric_limits<FieldType>::min();
163
538
    FieldType min_key = std::numeric_limits<FieldType>::max();
164
165
538
    size_t num_rows = key_columns[0]->size();
166
538
    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
538
    } else {
182
538
        const FieldType* input_keys = (FieldType*)key_columns[0]->get_raw_data().data;
183
        // skip first mocked row
184
1.59k
        for (size_t i = 1; i < num_rows; i++) {
185
1.06k
            max_key = std::max(max_key, input_keys[i]);
186
1.06k
            min_key = std::min(min_key, input_keys[i]);
187
1.06k
        }
188
538
    }
189
190
538
    constexpr auto MAX_MAPPING_RANGE = 1 << 23;
191
538
    bool allow_direct_mapping = (max_key >= min_key && max_key - min_key < MAX_MAPPING_RANGE - 1);
192
538
    if (allow_direct_mapping) {
193
525
        for (const auto& variant_ptr : variant_ptrs) {
194
525
            variant_ptr->method_variant.emplace<DirectPrimaryTypeHashTableContext<FieldType>>(
195
525
                    max_key, min_key);
196
525
        }
197
418
    }
198
538
}
199
200
template <typename Method>
201
void try_convert_to_direct_mapping(
202
        Method* method, const ColumnRawPtrs& key_columns,
203
50.8k
        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.5k
        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
14
        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.60k
        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.07k
        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
29
        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.97k
        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.36k
        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.28k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
208
1.28k
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
209
1.28k
}
210
211
inline void try_convert_to_direct_mapping(
212
        PrimaryTypeHashTableContext<UInt16>* context, const ColumnRawPtrs& key_columns,
213
690
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
214
690
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
215
690
}
216
217
inline void try_convert_to_direct_mapping(
218
        PrimaryTypeHashTableContext<UInt32>* context, const ColumnRawPtrs& key_columns,
219
16.8k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
220
16.8k
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
221
16.8k
}
222
223
inline void try_convert_to_direct_mapping(
224
        PrimaryTypeHashTableContext<UInt64>* context, const ColumnRawPtrs& key_columns,
225
8.71k
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
226
8.71k
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
227
8.71k
}
228
229
inline void try_convert_to_direct_mapping(
230
        PrimaryTypeHashTableContext<UInt128>* context, const ColumnRawPtrs& key_columns,
231
538
        const std::vector<std::shared_ptr<JoinDataVariants>>& variant_ptrs) {
232
538
    primary_to_direct_mapping(context, key_columns, variant_ptrs);
233
538
}
234
235
} // namespace doris