Coverage Report

Created: 2026-11-05 21:23

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
be/src/exprs/function/cast/function_cast_decimal.cpp
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
#include "core/data_type/data_type_decimal.h"
19
#include "exprs/function/cast/cast_to_decimal.h"
20
21
namespace doris::CastWrapper {
22
23
template <typename T>
24
constexpr static bool type_allow_cast_to_decimal =
25
        std::is_same_v<T, DataTypeString> || IsDataTypeNumber<T> || IsDataTypeDecimal<T>;
26
27
template <typename ToDataType>
28
24.6k
WrapperType create_decimal_wrapper(const CastOptions& options, const DataTypePtr& from_type) {
29
24.6k
    std::shared_ptr<CastToBase> cast_impl;
30
31
24.6k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
24.6k
        using Types = std::decay_t<decltype(types)>;
33
24.6k
        using FromDataType = typename Types::LeftType;
34
24.6k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
24.6k
            if (options.strict_mode) {
36
10.7k
                cast_impl = std::make_shared<
37
10.7k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
13.9k
            } else {
39
13.9k
                cast_impl = std::make_shared<
40
13.9k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
13.9k
            }
42
24.6k
            return true;
43
24.6k
        } else {
44
0
            return false;
45
0
        }
46
24.6k
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_
Line
Count
Source
31
6
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
6
        using Types = std::decay_t<decltype(types)>;
33
6
        using FromDataType = typename Types::LeftType;
34
6
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
6
            if (options.strict_mode) {
36
2
                cast_impl = std::make_shared<
37
2
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
4
            } else {
39
4
                cast_impl = std::make_shared<
40
4
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
4
            }
42
6
            return true;
43
        } else {
44
            return false;
45
        }
46
6
    };
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_28EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_29EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_30EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_35EEEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampNsEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeUUIDEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_
Line
Count
Source
31
14
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
14
        using Types = std::decay_t<decltype(types)>;
33
14
        using FromDataType = typename Types::LeftType;
34
14
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
14
            if (options.strict_mode) {
36
4
                cast_impl = std::make_shared<
37
4
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
10
            } else {
39
10
                cast_impl = std::make_shared<
40
10
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
10
            }
42
14
            return true;
43
        } else {
44
            return false;
45
        }
46
14
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_
Line
Count
Source
31
68
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
68
        using Types = std::decay_t<decltype(types)>;
33
68
        using FromDataType = typename Types::LeftType;
34
68
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
68
            if (options.strict_mode) {
36
46
                cast_impl = std::make_shared<
37
46
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
46
            } else {
39
22
                cast_impl = std::make_shared<
40
22
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
22
            }
42
68
            return true;
43
        } else {
44
            return false;
45
        }
46
68
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_
Line
Count
Source
31
78
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
78
        using Types = std::decay_t<decltype(types)>;
33
78
        using FromDataType = typename Types::LeftType;
34
78
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
78
            if (options.strict_mode) {
36
54
                cast_impl = std::make_shared<
37
54
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
54
            } else {
39
24
                cast_impl = std::make_shared<
40
24
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
24
            }
42
78
            return true;
43
        } else {
44
            return false;
45
        }
46
78
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_
Line
Count
Source
31
98
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
98
        using Types = std::decay_t<decltype(types)>;
33
98
        using FromDataType = typename Types::LeftType;
34
98
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
98
            if (options.strict_mode) {
36
70
                cast_impl = std::make_shared<
37
70
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
70
            } else {
39
28
                cast_impl = std::make_shared<
40
28
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
28
            }
42
98
            return true;
43
        } else {
44
            return false;
45
        }
46
98
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_
Line
Count
Source
31
100
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
100
        using Types = std::decay_t<decltype(types)>;
33
100
        using FromDataType = typename Types::LeftType;
34
100
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
100
            if (options.strict_mode) {
36
72
                cast_impl = std::make_shared<
37
72
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
72
            } else {
39
28
                cast_impl = std::make_shared<
40
28
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
28
            }
42
100
            return true;
43
        } else {
44
            return false;
45
        }
46
100
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_
Line
Count
Source
31
98
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
98
        using Types = std::decay_t<decltype(types)>;
33
98
        using FromDataType = typename Types::LeftType;
34
98
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
98
            if (options.strict_mode) {
36
70
                cast_impl = std::make_shared<
37
70
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
70
            } else {
39
28
                cast_impl = std::make_shared<
40
28
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
28
            }
42
98
            return true;
43
        } else {
44
            return false;
45
        }
46
98
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_
Line
Count
Source
31
198
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
198
        using Types = std::decay_t<decltype(types)>;
33
198
        using FromDataType = typename Types::LeftType;
34
198
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
198
            if (options.strict_mode) {
36
36
                cast_impl = std::make_shared<
37
36
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
162
            } else {
39
162
                cast_impl = std::make_shared<
40
162
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
162
            }
42
198
            return true;
43
        } else {
44
            return false;
45
        }
46
198
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_
Line
Count
Source
31
214
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
214
        using Types = std::decay_t<decltype(types)>;
33
214
        using FromDataType = typename Types::LeftType;
34
214
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
214
            if (options.strict_mode) {
36
36
                cast_impl = std::make_shared<
37
36
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
178
            } else {
39
178
                cast_impl = std::make_shared<
40
178
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
178
            }
42
214
            return true;
43
        } else {
44
            return false;
45
        }
46
214
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_
Line
Count
Source
31
264
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
264
        using Types = std::decay_t<decltype(types)>;
33
264
        using FromDataType = typename Types::LeftType;
34
264
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
264
            if (options.strict_mode) {
36
110
                cast_impl = std::make_shared<
37
110
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
154
            } else {
39
154
                cast_impl = std::make_shared<
40
154
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
154
            }
42
264
            return true;
43
        } else {
44
            return false;
45
        }
46
264
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_29EEEvEEEEbSS_
Line
Count
Source
31
570
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
570
        using Types = std::decay_t<decltype(types)>;
33
570
        using FromDataType = typename Types::LeftType;
34
570
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
570
            if (options.strict_mode) {
36
258
                cast_impl = std::make_shared<
37
258
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
312
            } else {
39
312
                cast_impl = std::make_shared<
40
312
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
312
            }
42
570
            return true;
43
        } else {
44
            return false;
45
        }
46
570
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_20EEEvEEEEbSS_
Line
Count
Source
31
322
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
322
        using Types = std::decay_t<decltype(types)>;
33
322
        using FromDataType = typename Types::LeftType;
34
322
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
322
            if (options.strict_mode) {
36
174
                cast_impl = std::make_shared<
37
174
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
174
            } else {
39
148
                cast_impl = std::make_shared<
40
148
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
148
            }
42
322
            return true;
43
        } else {
44
            return false;
45
        }
46
322
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_30EEEvEEEEbSS_
Line
Count
Source
31
592
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
592
        using Types = std::decay_t<decltype(types)>;
33
592
        using FromDataType = typename Types::LeftType;
34
592
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
592
            if (options.strict_mode) {
36
280
                cast_impl = std::make_shared<
37
280
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
312
            } else {
39
312
                cast_impl = std::make_shared<
40
312
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
312
            }
42
592
            return true;
43
        } else {
44
            return false;
45
        }
46
592
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_35EEEvEEEEbSS_
Line
Count
Source
31
592
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
592
        using Types = std::decay_t<decltype(types)>;
33
592
        using FromDataType = typename Types::LeftType;
34
592
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
592
            if (options.strict_mode) {
36
280
                cast_impl = std::make_shared<
37
280
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
312
            } else {
39
312
                cast_impl = std::make_shared<
40
312
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
312
            }
42
592
            return true;
43
        } else {
44
            return false;
45
        }
46
592
    };
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampNsEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeUUIDEvEEEEbSS_
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_
Line
Count
Source
31
3.27k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
3.27k
        using Types = std::decay_t<decltype(types)>;
33
3.27k
        using FromDataType = typename Types::LeftType;
34
3.27k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
3.27k
            if (options.strict_mode) {
36
1.70k
                cast_impl = std::make_shared<
37
1.70k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
1.70k
            } else {
39
1.56k
                cast_impl = std::make_shared<
40
1.56k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
1.56k
            }
42
3.27k
            return true;
43
        } else {
44
            return false;
45
        }
46
3.27k
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_
Line
Count
Source
31
14
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
14
        using Types = std::decay_t<decltype(types)>;
33
14
        using FromDataType = typename Types::LeftType;
34
14
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
14
            if (options.strict_mode) {
36
4
                cast_impl = std::make_shared<
37
4
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
10
            } else {
39
10
                cast_impl = std::make_shared<
40
10
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
10
            }
42
14
            return true;
43
        } else {
44
            return false;
45
        }
46
14
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_
Line
Count
Source
31
59
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
59
        using Types = std::decay_t<decltype(types)>;
33
59
        using FromDataType = typename Types::LeftType;
34
59
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
59
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
21
                cast_impl = std::make_shared<
40
21
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
21
            }
42
59
            return true;
43
        } else {
44
            return false;
45
        }
46
59
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_
Line
Count
Source
31
59
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
59
        using Types = std::decay_t<decltype(types)>;
33
59
        using FromDataType = typename Types::LeftType;
34
59
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
59
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
21
                cast_impl = std::make_shared<
40
21
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
21
            }
42
59
            return true;
43
        } else {
44
            return false;
45
        }
46
59
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_
Line
Count
Source
31
89
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
89
        using Types = std::decay_t<decltype(types)>;
33
89
        using FromDataType = typename Types::LeftType;
34
89
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
89
            if (options.strict_mode) {
36
62
                cast_impl = std::make_shared<
37
62
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
62
            } else {
39
27
                cast_impl = std::make_shared<
40
27
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
27
            }
42
89
            return true;
43
        } else {
44
            return false;
45
        }
46
89
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_
Line
Count
Source
31
98
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
98
        using Types = std::decay_t<decltype(types)>;
33
98
        using FromDataType = typename Types::LeftType;
34
98
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
98
            if (options.strict_mode) {
36
70
                cast_impl = std::make_shared<
37
70
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
70
            } else {
39
28
                cast_impl = std::make_shared<
40
28
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
28
            }
42
98
            return true;
43
        } else {
44
            return false;
45
        }
46
98
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_
Line
Count
Source
31
98
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
98
        using Types = std::decay_t<decltype(types)>;
33
98
        using FromDataType = typename Types::LeftType;
34
98
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
98
            if (options.strict_mode) {
36
70
                cast_impl = std::make_shared<
37
70
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
70
            } else {
39
28
                cast_impl = std::make_shared<
40
28
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
28
            }
42
98
            return true;
43
        } else {
44
            return false;
45
        }
46
98
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_
Line
Count
Source
31
198
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
198
        using Types = std::decay_t<decltype(types)>;
33
198
        using FromDataType = typename Types::LeftType;
34
198
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
198
            if (options.strict_mode) {
36
36
                cast_impl = std::make_shared<
37
36
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
162
            } else {
39
162
                cast_impl = std::make_shared<
40
162
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
162
            }
42
198
            return true;
43
        } else {
44
            return false;
45
        }
46
198
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_
Line
Count
Source
31
198
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
198
        using Types = std::decay_t<decltype(types)>;
33
198
        using FromDataType = typename Types::LeftType;
34
198
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
198
            if (options.strict_mode) {
36
36
                cast_impl = std::make_shared<
37
36
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
162
            } else {
39
162
                cast_impl = std::make_shared<
40
162
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
162
            }
42
198
            return true;
43
        } else {
44
            return false;
45
        }
46
198
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_28EEEvEEEEbSS_
Line
Count
Source
31
336
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
336
        using Types = std::decay_t<decltype(types)>;
33
336
        using FromDataType = typename Types::LeftType;
34
336
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
336
            if (options.strict_mode) {
36
72
                cast_impl = std::make_shared<
37
72
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
264
            } else {
39
264
                cast_impl = std::make_shared<
40
264
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
264
            }
42
336
            return true;
43
        } else {
44
            return false;
45
        }
46
336
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_
Line
Count
Source
31
544
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
544
        using Types = std::decay_t<decltype(types)>;
33
544
        using FromDataType = typename Types::LeftType;
34
544
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
544
            if (options.strict_mode) {
36
184
                cast_impl = std::make_shared<
37
184
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
360
            } else {
39
360
                cast_impl = std::make_shared<
40
360
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
360
            }
42
544
            return true;
43
        } else {
44
            return false;
45
        }
46
544
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_20EEEvEEEEbSS_
Line
Count
Source
31
360
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
360
        using Types = std::decay_t<decltype(types)>;
33
360
        using FromDataType = typename Types::LeftType;
34
360
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
360
            if (options.strict_mode) {
36
144
                cast_impl = std::make_shared<
37
144
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
216
            } else {
39
216
                cast_impl = std::make_shared<
40
216
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
216
            }
42
360
            return true;
43
        } else {
44
            return false;
45
        }
46
360
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_30EEEvEEEEbSS_
Line
Count
Source
31
762
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
762
        using Types = std::decay_t<decltype(types)>;
33
762
        using FromDataType = typename Types::LeftType;
34
762
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
762
            if (options.strict_mode) {
36
306
                cast_impl = std::make_shared<
37
306
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
456
            } else {
39
456
                cast_impl = std::make_shared<
40
456
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
456
            }
42
762
            return true;
43
        } else {
44
            return false;
45
        }
46
762
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_35EEEvEEEEbSS_
Line
Count
Source
31
784
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
784
        using Types = std::decay_t<decltype(types)>;
33
784
        using FromDataType = typename Types::LeftType;
34
784
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
784
            if (options.strict_mode) {
36
328
                cast_impl = std::make_shared<
37
328
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
456
            } else {
39
456
                cast_impl = std::make_shared<
40
456
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
456
            }
42
784
            return true;
43
        } else {
44
            return false;
45
        }
46
784
    };
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampNsEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeUUIDEvEEEEbSS_
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_
Line
Count
Source
31
2.83k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
2.83k
        using Types = std::decay_t<decltype(types)>;
33
2.83k
        using FromDataType = typename Types::LeftType;
34
2.83k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
2.83k
            if (options.strict_mode) {
36
1.41k
                cast_impl = std::make_shared<
37
1.41k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
1.41k
            } else {
39
1.41k
                cast_impl = std::make_shared<
40
1.41k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
1.41k
            }
42
2.83k
            return true;
43
        } else {
44
            return false;
45
        }
46
2.83k
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_
Line
Count
Source
31
14
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
14
        using Types = std::decay_t<decltype(types)>;
33
14
        using FromDataType = typename Types::LeftType;
34
14
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
14
            if (options.strict_mode) {
36
4
                cast_impl = std::make_shared<
37
4
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
10
            } else {
39
10
                cast_impl = std::make_shared<
40
10
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
10
            }
42
14
            return true;
43
        } else {
44
            return false;
45
        }
46
14
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_
Line
Count
Source
31
58
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
58
        using Types = std::decay_t<decltype(types)>;
33
58
        using FromDataType = typename Types::LeftType;
34
58
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
58
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
20
                cast_impl = std::make_shared<
40
20
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
20
            }
42
58
            return true;
43
        } else {
44
            return false;
45
        }
46
58
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_
Line
Count
Source
31
58
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
58
        using Types = std::decay_t<decltype(types)>;
33
58
        using FromDataType = typename Types::LeftType;
34
58
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
58
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
20
                cast_impl = std::make_shared<
40
20
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
20
            }
42
58
            return true;
43
        } else {
44
            return false;
45
        }
46
58
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_
Line
Count
Source
31
58
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
58
        using Types = std::decay_t<decltype(types)>;
33
58
        using FromDataType = typename Types::LeftType;
34
58
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
58
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
20
                cast_impl = std::make_shared<
40
20
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
20
            }
42
58
            return true;
43
        } else {
44
            return false;
45
        }
46
58
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_
Line
Count
Source
31
69
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
69
        using Types = std::decay_t<decltype(types)>;
33
69
        using FromDataType = typename Types::LeftType;
34
69
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
69
            if (options.strict_mode) {
36
46
                cast_impl = std::make_shared<
37
46
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
46
            } else {
39
23
                cast_impl = std::make_shared<
40
23
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
23
            }
42
69
            return true;
43
        } else {
44
            return false;
45
        }
46
69
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_
Line
Count
Source
31
98
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
98
        using Types = std::decay_t<decltype(types)>;
33
98
        using FromDataType = typename Types::LeftType;
34
98
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
98
            if (options.strict_mode) {
36
70
                cast_impl = std::make_shared<
37
70
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
70
            } else {
39
28
                cast_impl = std::make_shared<
40
28
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
28
            }
42
98
            return true;
43
        } else {
44
            return false;
45
        }
46
98
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_
Line
Count
Source
31
214
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
214
        using Types = std::decay_t<decltype(types)>;
33
214
        using FromDataType = typename Types::LeftType;
34
214
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
214
            if (options.strict_mode) {
36
36
                cast_impl = std::make_shared<
37
36
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
178
            } else {
39
178
                cast_impl = std::make_shared<
40
178
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
178
            }
42
214
            return true;
43
        } else {
44
            return false;
45
        }
46
214
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_
Line
Count
Source
31
198
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
198
        using Types = std::decay_t<decltype(types)>;
33
198
        using FromDataType = typename Types::LeftType;
34
198
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
198
            if (options.strict_mode) {
36
36
                cast_impl = std::make_shared<
37
36
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
162
            } else {
39
162
                cast_impl = std::make_shared<
40
162
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
162
            }
42
198
            return true;
43
        } else {
44
            return false;
45
        }
46
198
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_28EEEvEEEEbSS_
Line
Count
Source
31
336
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
336
        using Types = std::decay_t<decltype(types)>;
33
336
        using FromDataType = typename Types::LeftType;
34
336
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
336
            if (options.strict_mode) {
36
72
                cast_impl = std::make_shared<
37
72
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
264
            } else {
39
264
                cast_impl = std::make_shared<
40
264
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
264
            }
42
336
            return true;
43
        } else {
44
            return false;
45
        }
46
336
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_29EEEvEEEEbSS_
Line
Count
Source
31
530
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
530
        using Types = std::decay_t<decltype(types)>;
33
530
        using FromDataType = typename Types::LeftType;
34
530
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
530
            if (options.strict_mode) {
36
120
                cast_impl = std::make_shared<
37
120
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
410
            } else {
39
410
                cast_impl = std::make_shared<
40
410
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
410
            }
42
530
            return true;
43
        } else {
44
            return false;
45
        }
46
530
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_20EEEvEEEEbSS_
Line
Count
Source
31
270
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
270
        using Types = std::decay_t<decltype(types)>;
33
270
        using FromDataType = typename Types::LeftType;
34
270
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
270
            if (options.strict_mode) {
36
64
                cast_impl = std::make_shared<
37
64
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
206
            } else {
39
206
                cast_impl = std::make_shared<
40
206
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
206
            }
42
270
            return true;
43
        } else {
44
            return false;
45
        }
46
270
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_
Line
Count
Source
31
586
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
586
        using Types = std::decay_t<decltype(types)>;
33
586
        using FromDataType = typename Types::LeftType;
34
586
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
586
            if (options.strict_mode) {
36
184
                cast_impl = std::make_shared<
37
184
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
402
            } else {
39
402
                cast_impl = std::make_shared<
40
402
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
402
            }
42
586
            return true;
43
        } else {
44
            return false;
45
        }
46
586
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_35EEEvEEEEbSS_
Line
Count
Source
31
762
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
762
        using Types = std::decay_t<decltype(types)>;
33
762
        using FromDataType = typename Types::LeftType;
34
762
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
762
            if (options.strict_mode) {
36
306
                cast_impl = std::make_shared<
37
306
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
456
            } else {
39
456
                cast_impl = std::make_shared<
40
456
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
456
            }
42
762
            return true;
43
        } else {
44
            return false;
45
        }
46
762
    };
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampNsEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeUUIDEvEEEEbSS_
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_
Line
Count
Source
31
2.83k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
2.83k
        using Types = std::decay_t<decltype(types)>;
33
2.83k
        using FromDataType = typename Types::LeftType;
34
2.83k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
2.83k
            if (options.strict_mode) {
36
1.41k
                cast_impl = std::make_shared<
37
1.41k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
1.42k
            } else {
39
1.42k
                cast_impl = std::make_shared<
40
1.42k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
1.42k
            }
42
2.83k
            return true;
43
        } else {
44
            return false;
45
        }
46
2.83k
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_
Line
Count
Source
31
14
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
14
        using Types = std::decay_t<decltype(types)>;
33
14
        using FromDataType = typename Types::LeftType;
34
14
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
14
            if (options.strict_mode) {
36
4
                cast_impl = std::make_shared<
37
4
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
10
            } else {
39
10
                cast_impl = std::make_shared<
40
10
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
10
            }
42
14
            return true;
43
        } else {
44
            return false;
45
        }
46
14
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_
Line
Count
Source
31
58
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
58
        using Types = std::decay_t<decltype(types)>;
33
58
        using FromDataType = typename Types::LeftType;
34
58
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
58
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
20
                cast_impl = std::make_shared<
40
20
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
20
            }
42
58
            return true;
43
        } else {
44
            return false;
45
        }
46
58
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_
Line
Count
Source
31
58
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
58
        using Types = std::decay_t<decltype(types)>;
33
58
        using FromDataType = typename Types::LeftType;
34
58
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
58
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
20
                cast_impl = std::make_shared<
40
20
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
20
            }
42
58
            return true;
43
        } else {
44
            return false;
45
        }
46
58
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_
Line
Count
Source
31
58
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
58
        using Types = std::decay_t<decltype(types)>;
33
58
        using FromDataType = typename Types::LeftType;
34
58
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
58
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
20
                cast_impl = std::make_shared<
40
20
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
20
            }
42
58
            return true;
43
        } else {
44
            return false;
45
        }
46
58
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_
Line
Count
Source
31
58
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
58
        using Types = std::decay_t<decltype(types)>;
33
58
        using FromDataType = typename Types::LeftType;
34
58
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
58
            if (options.strict_mode) {
36
38
                cast_impl = std::make_shared<
37
38
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
38
            } else {
39
20
                cast_impl = std::make_shared<
40
20
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
20
            }
42
58
            return true;
43
        } else {
44
            return false;
45
        }
46
58
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_
Line
Count
Source
31
88
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
88
        using Types = std::decay_t<decltype(types)>;
33
88
        using FromDataType = typename Types::LeftType;
34
88
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
88
            if (options.strict_mode) {
36
62
                cast_impl = std::make_shared<
37
62
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
62
            } else {
39
26
                cast_impl = std::make_shared<
40
26
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
26
            }
42
88
            return true;
43
        } else {
44
            return false;
45
        }
46
88
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_
Line
Count
Source
31
174
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
174
        using Types = std::decay_t<decltype(types)>;
33
174
        using FromDataType = typename Types::LeftType;
34
174
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
174
            if (options.strict_mode) {
36
36
                cast_impl = std::make_shared<
37
36
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
138
            } else {
39
138
                cast_impl = std::make_shared<
40
138
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
138
            }
42
174
            return true;
43
        } else {
44
            return false;
45
        }
46
174
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_
Line
Count
Source
31
198
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
198
        using Types = std::decay_t<decltype(types)>;
33
198
        using FromDataType = typename Types::LeftType;
34
198
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
198
            if (options.strict_mode) {
36
36
                cast_impl = std::make_shared<
37
36
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
162
            } else {
39
162
                cast_impl = std::make_shared<
40
162
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
162
            }
42
198
            return true;
43
        } else {
44
            return false;
45
        }
46
198
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_28EEEvEEEEbSS_
Line
Count
Source
31
336
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
336
        using Types = std::decay_t<decltype(types)>;
33
336
        using FromDataType = typename Types::LeftType;
34
336
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
336
            if (options.strict_mode) {
36
72
                cast_impl = std::make_shared<
37
72
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
264
            } else {
39
264
                cast_impl = std::make_shared<
40
264
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
264
            }
42
336
            return true;
43
        } else {
44
            return false;
45
        }
46
336
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_29EEEvEEEEbSS_
Line
Count
Source
31
528
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
528
        using Types = std::decay_t<decltype(types)>;
33
528
        using FromDataType = typename Types::LeftType;
34
528
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
528
            if (options.strict_mode) {
36
120
                cast_impl = std::make_shared<
37
120
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
408
            } else {
39
408
                cast_impl = std::make_shared<
40
408
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
408
            }
42
528
            return true;
43
        } else {
44
            return false;
45
        }
46
528
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_20EEEvEEEEbSS_
Line
Count
Source
31
264
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
264
        using Types = std::decay_t<decltype(types)>;
33
264
        using FromDataType = typename Types::LeftType;
34
264
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
264
            if (options.strict_mode) {
36
60
                cast_impl = std::make_shared<
37
60
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
204
            } else {
39
204
                cast_impl = std::make_shared<
40
204
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
204
            }
42
264
            return true;
43
        } else {
44
            return false;
45
        }
46
264
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_30EEEvEEEEbSS_
Line
Count
Source
31
528
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
528
        using Types = std::decay_t<decltype(types)>;
33
528
        using FromDataType = typename Types::LeftType;
34
528
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
528
            if (options.strict_mode) {
36
120
                cast_impl = std::make_shared<
37
120
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
408
            } else {
39
408
                cast_impl = std::make_shared<
40
408
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
408
            }
42
528
            return true;
43
        } else {
44
            return false;
45
        }
46
528
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_
Line
Count
Source
31
544
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
544
        using Types = std::decay_t<decltype(types)>;
33
544
        using FromDataType = typename Types::LeftType;
34
544
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
544
            if (options.strict_mode) {
36
184
                cast_impl = std::make_shared<
37
184
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
360
            } else {
39
360
                cast_impl = std::make_shared<
40
360
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
360
            }
42
544
            return true;
43
        } else {
44
            return false;
45
        }
46
544
    };
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampNsEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeUUIDEvEEEEbSS_
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_
Line
Count
Source
31
2.78k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
2.78k
        using Types = std::decay_t<decltype(types)>;
33
2.78k
        using FromDataType = typename Types::LeftType;
34
2.78k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
2.78k
            if (options.strict_mode) {
36
1.39k
                cast_impl = std::make_shared<
37
1.39k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
1.39k
            } else {
39
1.39k
                cast_impl = std::make_shared<
40
1.39k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
1.39k
            }
42
2.78k
            return true;
43
        } else {
44
            return false;
45
        }
46
2.78k
    };
47
48
24.6k
    if (!call_on_index_and_data_type<void>(from_type->get_primitive_type(), make_cast_wrapper)) {
49
0
        return create_unsupport_wrapper(
50
0
                fmt::format("CAST AS decimal not supported {}", from_type->get_name()));
51
0
    }
52
53
24.6k
    return [cast_impl](RuntimeState* state, const ColumnWithTypeAndName& source_column,
54
24.6k
                       ColumnWithTypeAndName& target_column, size_t input_rows_count,
55
24.7k
                       const NullMap::value_type* null_map = nullptr) {
56
24.7k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
24.7k
                                       null_map);
58
24.7k
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SB_SC_mSE_E_clES8_SB_SC_mSE_
Line
Count
Source
55
6
                       const NullMap::value_type* null_map = nullptr) {
56
6
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
6
                                       null_map);
58
6
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SB_SC_mSE_E_clES8_SB_SC_mSE_
Line
Count
Source
55
6.49k
                       const NullMap::value_type* null_map = nullptr) {
56
6.49k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
6.49k
                                       null_map);
58
6.49k
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SB_SC_mSE_E_clES8_SB_SC_mSE_
Line
Count
Source
55
6.43k
                       const NullMap::value_type* null_map = nullptr) {
56
6.43k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
6.43k
                                       null_map);
58
6.43k
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SB_SC_mSE_E_clES8_SB_SC_mSE_
Line
Count
Source
55
6.08k
                       const NullMap::value_type* null_map = nullptr) {
56
6.08k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
6.08k
                                       null_map);
58
6.08k
    };
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SB_SC_mSE_E_clES8_SB_SC_mSE_
Line
Count
Source
55
5.68k
                       const NullMap::value_type* null_map = nullptr) {
56
5.68k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
5.68k
                                       null_map);
58
5.68k
    };
59
24.6k
}
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
28
6
WrapperType create_decimal_wrapper(const CastOptions& options, const DataTypePtr& from_type) {
29
6
    std::shared_ptr<CastToBase> cast_impl;
30
31
6
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
6
        using Types = std::decay_t<decltype(types)>;
33
6
        using FromDataType = typename Types::LeftType;
34
6
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
6
            if (options.strict_mode) {
36
6
                cast_impl = std::make_shared<
37
6
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
6
            } else {
39
6
                cast_impl = std::make_shared<
40
6
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
6
            }
42
6
            return true;
43
6
        } else {
44
6
            return false;
45
6
        }
46
6
    };
47
48
6
    if (!call_on_index_and_data_type<void>(from_type->get_primitive_type(), make_cast_wrapper)) {
49
0
        return create_unsupport_wrapper(
50
0
                fmt::format("CAST AS decimal not supported {}", from_type->get_name()));
51
0
    }
52
53
6
    return [cast_impl](RuntimeState* state, const ColumnWithTypeAndName& source_column,
54
6
                       ColumnWithTypeAndName& target_column, size_t input_rows_count,
55
6
                       const NullMap::value_type* null_map = nullptr) {
56
6
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
6
                                       null_map);
58
6
    };
59
6
}
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
28
6.48k
WrapperType create_decimal_wrapper(const CastOptions& options, const DataTypePtr& from_type) {
29
6.48k
    std::shared_ptr<CastToBase> cast_impl;
30
31
6.48k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
6.48k
        using Types = std::decay_t<decltype(types)>;
33
6.48k
        using FromDataType = typename Types::LeftType;
34
6.48k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
6.48k
            if (options.strict_mode) {
36
6.48k
                cast_impl = std::make_shared<
37
6.48k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
6.48k
            } else {
39
6.48k
                cast_impl = std::make_shared<
40
6.48k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
6.48k
            }
42
6.48k
            return true;
43
6.48k
        } else {
44
6.48k
            return false;
45
6.48k
        }
46
6.48k
    };
47
48
6.48k
    if (!call_on_index_and_data_type<void>(from_type->get_primitive_type(), make_cast_wrapper)) {
49
0
        return create_unsupport_wrapper(
50
0
                fmt::format("CAST AS decimal not supported {}", from_type->get_name()));
51
0
    }
52
53
6.48k
    return [cast_impl](RuntimeState* state, const ColumnWithTypeAndName& source_column,
54
6.48k
                       ColumnWithTypeAndName& target_column, size_t input_rows_count,
55
6.48k
                       const NullMap::value_type* null_map = nullptr) {
56
6.48k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
6.48k
                                       null_map);
58
6.48k
    };
59
6.48k
}
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
28
6.43k
WrapperType create_decimal_wrapper(const CastOptions& options, const DataTypePtr& from_type) {
29
6.43k
    std::shared_ptr<CastToBase> cast_impl;
30
31
6.43k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
6.43k
        using Types = std::decay_t<decltype(types)>;
33
6.43k
        using FromDataType = typename Types::LeftType;
34
6.43k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
6.43k
            if (options.strict_mode) {
36
6.43k
                cast_impl = std::make_shared<
37
6.43k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
6.43k
            } else {
39
6.43k
                cast_impl = std::make_shared<
40
6.43k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
6.43k
            }
42
6.43k
            return true;
43
6.43k
        } else {
44
6.43k
            return false;
45
6.43k
        }
46
6.43k
    };
47
48
6.43k
    if (!call_on_index_and_data_type<void>(from_type->get_primitive_type(), make_cast_wrapper)) {
49
0
        return create_unsupport_wrapper(
50
0
                fmt::format("CAST AS decimal not supported {}", from_type->get_name()));
51
0
    }
52
53
6.43k
    return [cast_impl](RuntimeState* state, const ColumnWithTypeAndName& source_column,
54
6.43k
                       ColumnWithTypeAndName& target_column, size_t input_rows_count,
55
6.43k
                       const NullMap::value_type* null_map = nullptr) {
56
6.43k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
6.43k
                                       null_map);
58
6.43k
    };
59
6.43k
}
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
28
6.08k
WrapperType create_decimal_wrapper(const CastOptions& options, const DataTypePtr& from_type) {
29
6.08k
    std::shared_ptr<CastToBase> cast_impl;
30
31
6.08k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
6.08k
        using Types = std::decay_t<decltype(types)>;
33
6.08k
        using FromDataType = typename Types::LeftType;
34
6.08k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
6.08k
            if (options.strict_mode) {
36
6.08k
                cast_impl = std::make_shared<
37
6.08k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
6.08k
            } else {
39
6.08k
                cast_impl = std::make_shared<
40
6.08k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
6.08k
            }
42
6.08k
            return true;
43
6.08k
        } else {
44
6.08k
            return false;
45
6.08k
        }
46
6.08k
    };
47
48
6.08k
    if (!call_on_index_and_data_type<void>(from_type->get_primitive_type(), make_cast_wrapper)) {
49
0
        return create_unsupport_wrapper(
50
0
                fmt::format("CAST AS decimal not supported {}", from_type->get_name()));
51
0
    }
52
53
6.08k
    return [cast_impl](RuntimeState* state, const ColumnWithTypeAndName& source_column,
54
6.08k
                       ColumnWithTypeAndName& target_column, size_t input_rows_count,
55
6.08k
                       const NullMap::value_type* null_map = nullptr) {
56
6.08k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
6.08k
                                       null_map);
58
6.08k
    };
59
6.08k
}
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_12RuntimeStateERKNS_21ColumnWithTypeAndNameERS9_mPKhEERKNS_11CastOptionsERKSt10shared_ptrIKNS_9IDataTypeEE
Line
Count
Source
28
5.68k
WrapperType create_decimal_wrapper(const CastOptions& options, const DataTypePtr& from_type) {
29
5.68k
    std::shared_ptr<CastToBase> cast_impl;
30
31
5.68k
    auto make_cast_wrapper = [&](const auto& types) -> bool {
32
5.68k
        using Types = std::decay_t<decltype(types)>;
33
5.68k
        using FromDataType = typename Types::LeftType;
34
5.68k
        if constexpr (type_allow_cast_to_decimal<FromDataType>) {
35
5.68k
            if (options.strict_mode) {
36
5.68k
                cast_impl = std::make_shared<
37
5.68k
                        CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>();
38
5.68k
            } else {
39
5.68k
                cast_impl = std::make_shared<
40
5.68k
                        CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>();
41
5.68k
            }
42
5.68k
            return true;
43
5.68k
        } else {
44
5.68k
            return false;
45
5.68k
        }
46
5.68k
    };
47
48
5.68k
    if (!call_on_index_and_data_type<void>(from_type->get_primitive_type(), make_cast_wrapper)) {
49
0
        return create_unsupport_wrapper(
50
0
                fmt::format("CAST AS decimal not supported {}", from_type->get_name()));
51
0
    }
52
53
5.68k
    return [cast_impl](RuntimeState* state, const ColumnWithTypeAndName& source_column,
54
5.68k
                       ColumnWithTypeAndName& target_column, size_t input_rows_count,
55
5.68k
                       const NullMap::value_type* null_map = nullptr) {
56
5.68k
        return cast_impl->execute_impl(state, source_column, target_column, input_rows_count,
57
5.68k
                                       null_map);
58
5.68k
    };
59
5.68k
}
60
61
WrapperType create_decimal_wrapper(const CastOptions& options, const DataTypePtr& from_type,
62
24.6k
                                   PrimitiveType to_type) {
63
24.6k
    switch (to_type) {
64
6
    case TYPE_DECIMALV2:
65
6
        return create_decimal_wrapper<DataTypeDecimalV2>(options, from_type);
66
6.48k
    case TYPE_DECIMAL32:
67
6.48k
        return create_decimal_wrapper<DataTypeDecimal32>(options, from_type);
68
6.43k
    case TYPE_DECIMAL64:
69
6.43k
        return create_decimal_wrapper<DataTypeDecimal64>(options, from_type);
70
6.08k
    case TYPE_DECIMAL128I:
71
6.08k
        return create_decimal_wrapper<DataTypeDecimal128>(options, from_type);
72
5.68k
    case TYPE_DECIMAL256:
73
5.68k
        return create_decimal_wrapper<DataTypeDecimal256>(options, from_type);
74
0
    default:
75
0
        return create_unsupport_wrapper(
76
0
                fmt::format("CAST AS decimal: unsupported to_type {}", type_to_string(to_type)));
77
24.6k
    }
78
24.6k
}
79
80
} // namespace doris::CastWrapper