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 | 12.3k | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { |
29 | 12.3k | std::shared_ptr<CastToBase> cast_impl; |
30 | | |
31 | 12.3k | auto make_cast_wrapper = [&](const auto& types) -> bool { |
32 | 12.3k | using Types = std::decay_t<decltype(types)>; |
33 | 12.3k | using FromDataType = typename Types::LeftType; |
34 | 12.3k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { |
35 | 12.3k | if (context->enable_strict_mode()) { |
36 | 5.35k | cast_impl = std::make_shared< |
37 | 5.35k | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); |
38 | 6.95k | } else { |
39 | 6.95k | cast_impl = std::make_shared< |
40 | 6.95k | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); |
41 | 6.95k | } |
42 | 12.3k | return true; |
43 | 12.3k | } else { |
44 | 0 | return false; |
45 | 0 | } |
46 | 12.3k | }; _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_ Line | Count | Source | 31 | 4 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 4 | using Types = std::decay_t<decltype(types)>; | 33 | 4 | using FromDataType = typename Types::LeftType; | 34 | 4 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 4 | if (context->enable_strict_mode()) { | 36 | 2 | cast_impl = std::make_shared< | 37 | 2 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 2 | } else { | 39 | 2 | cast_impl = std::make_shared< | 40 | 2 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 2 | } | 42 | 4 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 4 | }; |
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_28EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_29EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_30EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_35EEEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_ _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_ Line | Count | Source | 31 | 7 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 7 | using Types = std::decay_t<decltype(types)>; | 33 | 7 | using FromDataType = typename Types::LeftType; | 34 | 7 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 7 | if (context->enable_strict_mode()) { | 36 | 2 | cast_impl = std::make_shared< | 37 | 2 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 5 | } else { | 39 | 5 | cast_impl = std::make_shared< | 40 | 5 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 5 | } | 42 | 7 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 7 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_ Line | Count | Source | 31 | 34 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 34 | using Types = std::decay_t<decltype(types)>; | 33 | 34 | using FromDataType = typename Types::LeftType; | 34 | 34 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 34 | if (context->enable_strict_mode()) { | 36 | 23 | cast_impl = std::make_shared< | 37 | 23 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 23 | } else { | 39 | 11 | cast_impl = std::make_shared< | 40 | 11 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 11 | } | 42 | 34 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 34 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_ Line | Count | Source | 31 | 39 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 39 | using Types = std::decay_t<decltype(types)>; | 33 | 39 | using FromDataType = typename Types::LeftType; | 34 | 39 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 39 | if (context->enable_strict_mode()) { | 36 | 27 | cast_impl = std::make_shared< | 37 | 27 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 27 | } else { | 39 | 12 | cast_impl = std::make_shared< | 40 | 12 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 12 | } | 42 | 39 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 39 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_ Line | Count | Source | 31 | 49 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 49 | using Types = std::decay_t<decltype(types)>; | 33 | 49 | using FromDataType = typename Types::LeftType; | 34 | 49 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 49 | if (context->enable_strict_mode()) { | 36 | 35 | cast_impl = std::make_shared< | 37 | 35 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 35 | } else { | 39 | 14 | cast_impl = std::make_shared< | 40 | 14 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 14 | } | 42 | 49 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 49 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_ Line | Count | Source | 31 | 49 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 49 | using Types = std::decay_t<decltype(types)>; | 33 | 49 | using FromDataType = typename Types::LeftType; | 34 | 49 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 49 | if (context->enable_strict_mode()) { | 36 | 35 | cast_impl = std::make_shared< | 37 | 35 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 35 | } else { | 39 | 14 | cast_impl = std::make_shared< | 40 | 14 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 14 | } | 42 | 49 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 49 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_ Line | Count | Source | 31 | 49 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 49 | using Types = std::decay_t<decltype(types)>; | 33 | 49 | using FromDataType = typename Types::LeftType; | 34 | 49 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 49 | if (context->enable_strict_mode()) { | 36 | 35 | cast_impl = std::make_shared< | 37 | 35 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 35 | } else { | 39 | 14 | cast_impl = std::make_shared< | 40 | 14 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 14 | } | 42 | 49 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 49 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_ Line | Count | Source | 31 | 99 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 99 | using Types = std::decay_t<decltype(types)>; | 33 | 99 | using FromDataType = typename Types::LeftType; | 34 | 99 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 99 | if (context->enable_strict_mode()) { | 36 | 18 | cast_impl = std::make_shared< | 37 | 18 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 81 | } else { | 39 | 81 | cast_impl = std::make_shared< | 40 | 81 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 81 | } | 42 | 99 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 99 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_ Line | Count | Source | 31 | 103 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 103 | using Types = std::decay_t<decltype(types)>; | 33 | 103 | using FromDataType = typename Types::LeftType; | 34 | 103 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 103 | if (context->enable_strict_mode()) { | 36 | 18 | cast_impl = std::make_shared< | 37 | 18 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 85 | } else { | 39 | 85 | cast_impl = std::make_shared< | 40 | 85 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 85 | } | 42 | 103 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 103 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_ Line | Count | Source | 31 | 128 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 128 | using Types = std::decay_t<decltype(types)>; | 33 | 128 | using FromDataType = typename Types::LeftType; | 34 | 128 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 128 | if (context->enable_strict_mode()) { | 36 | 53 | cast_impl = std::make_shared< | 37 | 53 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 75 | } else { | 39 | 75 | cast_impl = std::make_shared< | 40 | 75 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 75 | } | 42 | 128 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 128 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_29EEEvEEEEbSS_ Line | Count | Source | 31 | 285 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 285 | using Types = std::decay_t<decltype(types)>; | 33 | 285 | using FromDataType = typename Types::LeftType; | 34 | 285 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 285 | if (context->enable_strict_mode()) { | 36 | 129 | cast_impl = std::make_shared< | 37 | 129 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 156 | } else { | 39 | 156 | cast_impl = std::make_shared< | 40 | 156 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 156 | } | 42 | 285 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 285 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_20EEEvEEEEbSS_ Line | Count | Source | 31 | 161 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 161 | using Types = std::decay_t<decltype(types)>; | 33 | 161 | using FromDataType = typename Types::LeftType; | 34 | 161 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 161 | if (context->enable_strict_mode()) { | 36 | 87 | cast_impl = std::make_shared< | 37 | 87 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 87 | } else { | 39 | 74 | cast_impl = std::make_shared< | 40 | 74 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 74 | } | 42 | 161 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 161 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_30EEEvEEEEbSS_ Line | Count | Source | 31 | 296 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 296 | using Types = std::decay_t<decltype(types)>; | 33 | 296 | using FromDataType = typename Types::LeftType; | 34 | 296 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 296 | if (context->enable_strict_mode()) { | 36 | 140 | cast_impl = std::make_shared< | 37 | 140 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 156 | } else { | 39 | 156 | cast_impl = std::make_shared< | 40 | 156 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 156 | } | 42 | 296 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 296 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_35EEEvEEEEbSS_ Line | Count | Source | 31 | 296 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 296 | using Types = std::decay_t<decltype(types)>; | 33 | 296 | using FromDataType = typename Types::LeftType; | 34 | 296 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 296 | if (context->enable_strict_mode()) { | 36 | 140 | cast_impl = std::make_shared< | 37 | 140 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 156 | } else { | 39 | 156 | cast_impl = std::make_shared< | 40 | 156 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 156 | } | 42 | 296 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 296 | }; |
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_ _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_ Line | Count | Source | 31 | 1.63k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 1.63k | using Types = std::decay_t<decltype(types)>; | 33 | 1.63k | using FromDataType = typename Types::LeftType; | 34 | 1.63k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 1.63k | if (context->enable_strict_mode()) { | 36 | 854 | cast_impl = std::make_shared< | 37 | 854 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 854 | } else { | 39 | 782 | cast_impl = std::make_shared< | 40 | 782 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 782 | } | 42 | 1.63k | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 1.63k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_ Line | Count | Source | 31 | 7 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 7 | using Types = std::decay_t<decltype(types)>; | 33 | 7 | using FromDataType = typename Types::LeftType; | 34 | 7 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 7 | if (context->enable_strict_mode()) { | 36 | 2 | cast_impl = std::make_shared< | 37 | 2 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 5 | } else { | 39 | 5 | cast_impl = std::make_shared< | 40 | 5 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 5 | } | 42 | 7 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 7 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_ Line | Count | Source | 31 | 44 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 44 | using Types = std::decay_t<decltype(types)>; | 33 | 44 | using FromDataType = typename Types::LeftType; | 34 | 44 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 44 | if (context->enable_strict_mode()) { | 36 | 31 | cast_impl = std::make_shared< | 37 | 31 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 31 | } else { | 39 | 13 | cast_impl = std::make_shared< | 40 | 13 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 13 | } | 42 | 44 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 44 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_ Line | Count | Source | 31 | 49 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 49 | using Types = std::decay_t<decltype(types)>; | 33 | 49 | using FromDataType = typename Types::LeftType; | 34 | 49 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 49 | if (context->enable_strict_mode()) { | 36 | 35 | cast_impl = std::make_shared< | 37 | 35 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 35 | } else { | 39 | 14 | cast_impl = std::make_shared< | 40 | 14 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 14 | } | 42 | 49 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 49 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_ Line | Count | Source | 31 | 49 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 49 | using Types = std::decay_t<decltype(types)>; | 33 | 49 | using FromDataType = typename Types::LeftType; | 34 | 49 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 49 | if (context->enable_strict_mode()) { | 36 | 35 | cast_impl = std::make_shared< | 37 | 35 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 35 | } else { | 39 | 14 | cast_impl = std::make_shared< | 40 | 14 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 14 | } | 42 | 49 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 49 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_ Line | Count | Source | 31 | 99 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 99 | using Types = std::decay_t<decltype(types)>; | 33 | 99 | using FromDataType = typename Types::LeftType; | 34 | 99 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 99 | if (context->enable_strict_mode()) { | 36 | 18 | cast_impl = std::make_shared< | 37 | 18 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 81 | } else { | 39 | 81 | cast_impl = std::make_shared< | 40 | 81 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 81 | } | 42 | 99 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 99 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_ Line | Count | Source | 31 | 99 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 99 | using Types = std::decay_t<decltype(types)>; | 33 | 99 | using FromDataType = typename Types::LeftType; | 34 | 99 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 99 | if (context->enable_strict_mode()) { | 36 | 18 | cast_impl = std::make_shared< | 37 | 18 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 81 | } else { | 39 | 81 | cast_impl = std::make_shared< | 40 | 81 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 81 | } | 42 | 99 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 99 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_28EEEvEEEEbSS_ Line | Count | Source | 31 | 168 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 168 | using Types = std::decay_t<decltype(types)>; | 33 | 168 | using FromDataType = typename Types::LeftType; | 34 | 168 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 168 | if (context->enable_strict_mode()) { | 36 | 36 | cast_impl = std::make_shared< | 37 | 36 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 132 | } else { | 39 | 132 | cast_impl = std::make_shared< | 40 | 132 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 132 | } | 42 | 168 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 168 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_ Line | Count | Source | 31 | 272 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 272 | using Types = std::decay_t<decltype(types)>; | 33 | 272 | using FromDataType = typename Types::LeftType; | 34 | 272 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 272 | if (context->enable_strict_mode()) { | 36 | 92 | cast_impl = std::make_shared< | 37 | 92 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 180 | } else { | 39 | 180 | cast_impl = std::make_shared< | 40 | 180 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 180 | } | 42 | 272 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 272 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_20EEEvEEEEbSS_ Line | Count | Source | 31 | 180 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 180 | using Types = std::decay_t<decltype(types)>; | 33 | 180 | using FromDataType = typename Types::LeftType; | 34 | 180 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 180 | if (context->enable_strict_mode()) { | 36 | 72 | cast_impl = std::make_shared< | 37 | 72 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 108 | } else { | 39 | 108 | cast_impl = std::make_shared< | 40 | 108 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 108 | } | 42 | 180 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 180 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_30EEEvEEEEbSS_ Line | Count | Source | 31 | 381 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 381 | using Types = std::decay_t<decltype(types)>; | 33 | 381 | using FromDataType = typename Types::LeftType; | 34 | 381 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 381 | if (context->enable_strict_mode()) { | 36 | 153 | cast_impl = std::make_shared< | 37 | 153 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 228 | } else { | 39 | 228 | cast_impl = std::make_shared< | 40 | 228 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 228 | } | 42 | 381 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 381 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_35EEEvEEEEbSS_ Line | Count | Source | 31 | 392 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 392 | using Types = std::decay_t<decltype(types)>; | 33 | 392 | using FromDataType = typename Types::LeftType; | 34 | 392 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 392 | if (context->enable_strict_mode()) { | 36 | 164 | cast_impl = std::make_shared< | 37 | 164 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 228 | } else { | 39 | 228 | cast_impl = std::make_shared< | 40 | 228 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 228 | } | 42 | 392 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 392 | }; |
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_ _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_ Line | Count | Source | 31 | 1.41k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 1.41k | using Types = std::decay_t<decltype(types)>; | 33 | 1.41k | using FromDataType = typename Types::LeftType; | 34 | 1.41k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 1.41k | if (context->enable_strict_mode()) { | 36 | 709 | cast_impl = std::make_shared< | 37 | 709 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 709 | } else { | 39 | 709 | cast_impl = std::make_shared< | 40 | 709 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 709 | } | 42 | 1.41k | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 1.41k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_ Line | Count | Source | 31 | 7 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 7 | using Types = std::decay_t<decltype(types)>; | 33 | 7 | using FromDataType = typename Types::LeftType; | 34 | 7 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 7 | if (context->enable_strict_mode()) { | 36 | 2 | cast_impl = std::make_shared< | 37 | 2 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 5 | } else { | 39 | 5 | cast_impl = std::make_shared< | 40 | 5 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 5 | } | 42 | 7 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 7 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_ Line | Count | Source | 31 | 34 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 34 | using Types = std::decay_t<decltype(types)>; | 33 | 34 | using FromDataType = typename Types::LeftType; | 34 | 34 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 34 | if (context->enable_strict_mode()) { | 36 | 23 | cast_impl = std::make_shared< | 37 | 23 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 23 | } else { | 39 | 11 | cast_impl = std::make_shared< | 40 | 11 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 11 | } | 42 | 34 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 34 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_ Line | Count | Source | 31 | 49 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 49 | using Types = std::decay_t<decltype(types)>; | 33 | 49 | using FromDataType = typename Types::LeftType; | 34 | 49 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 49 | if (context->enable_strict_mode()) { | 36 | 35 | cast_impl = std::make_shared< | 37 | 35 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 35 | } else { | 39 | 14 | cast_impl = std::make_shared< | 40 | 14 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 14 | } | 42 | 49 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 49 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_ Line | Count | Source | 31 | 107 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 107 | using Types = std::decay_t<decltype(types)>; | 33 | 107 | using FromDataType = typename Types::LeftType; | 34 | 107 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 107 | if (context->enable_strict_mode()) { | 36 | 18 | cast_impl = std::make_shared< | 37 | 18 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 89 | } else { | 39 | 89 | cast_impl = std::make_shared< | 40 | 89 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 89 | } | 42 | 107 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 107 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_ Line | Count | Source | 31 | 91 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 91 | using Types = std::decay_t<decltype(types)>; | 33 | 91 | using FromDataType = typename Types::LeftType; | 34 | 91 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 91 | if (context->enable_strict_mode()) { | 36 | 18 | cast_impl = std::make_shared< | 37 | 18 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 73 | } else { | 39 | 73 | cast_impl = std::make_shared< | 40 | 73 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 73 | } | 42 | 91 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 91 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_28EEEvEEEEbSS_ Line | Count | Source | 31 | 168 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 168 | using Types = std::decay_t<decltype(types)>; | 33 | 168 | using FromDataType = typename Types::LeftType; | 34 | 168 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 168 | if (context->enable_strict_mode()) { | 36 | 36 | cast_impl = std::make_shared< | 37 | 36 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 132 | } else { | 39 | 132 | cast_impl = std::make_shared< | 40 | 132 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 132 | } | 42 | 168 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 168 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_29EEEvEEEEbSS_ 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 (context->enable_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_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_20EEEvEEEEbSS_ Line | Count | Source | 31 | 135 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 135 | using Types = std::decay_t<decltype(types)>; | 33 | 135 | using FromDataType = typename Types::LeftType; | 34 | 135 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 135 | if (context->enable_strict_mode()) { | 36 | 32 | cast_impl = std::make_shared< | 37 | 32 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 103 | } else { | 39 | 103 | cast_impl = std::make_shared< | 40 | 103 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 103 | } | 42 | 135 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 135 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_ Line | Count | Source | 31 | 272 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 272 | using Types = std::decay_t<decltype(types)>; | 33 | 272 | using FromDataType = typename Types::LeftType; | 34 | 272 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 272 | if (context->enable_strict_mode()) { | 36 | 92 | cast_impl = std::make_shared< | 37 | 92 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 180 | } else { | 39 | 180 | cast_impl = std::make_shared< | 40 | 180 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 180 | } | 42 | 272 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 272 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_35EEEvEEEEbSS_ Line | Count | Source | 31 | 381 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 381 | using Types = std::decay_t<decltype(types)>; | 33 | 381 | using FromDataType = typename Types::LeftType; | 34 | 381 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 381 | if (context->enable_strict_mode()) { | 36 | 153 | cast_impl = std::make_shared< | 37 | 153 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 228 | } else { | 39 | 228 | cast_impl = std::make_shared< | 40 | 228 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 228 | } | 42 | 381 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 381 | }; |
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_ _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_ Line | Count | Source | 31 | 1.41k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 1.41k | using Types = std::decay_t<decltype(types)>; | 33 | 1.41k | using FromDataType = typename Types::LeftType; | 34 | 1.41k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 1.41k | if (context->enable_strict_mode()) { | 36 | 709 | cast_impl = std::make_shared< | 37 | 709 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 709 | } else { | 39 | 709 | cast_impl = std::make_shared< | 40 | 709 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 709 | } | 42 | 1.41k | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 1.41k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_ Line | Count | Source | 31 | 7 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 7 | using Types = std::decay_t<decltype(types)>; | 33 | 7 | using FromDataType = typename Types::LeftType; | 34 | 7 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 7 | if (context->enable_strict_mode()) { | 36 | 2 | cast_impl = std::make_shared< | 37 | 2 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 5 | } else { | 39 | 5 | cast_impl = std::make_shared< | 40 | 5 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 5 | } | 42 | 7 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 7 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_3EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_4EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_ Line | Count | Source | 31 | 29 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 29 | using Types = std::decay_t<decltype(types)>; | 33 | 29 | using FromDataType = typename Types::LeftType; | 34 | 29 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 29 | if (context->enable_strict_mode()) { | 36 | 19 | cast_impl = std::make_shared< | 37 | 19 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 19 | } else { | 39 | 10 | cast_impl = std::make_shared< | 40 | 10 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 10 | } | 42 | 29 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 29 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_7EEEvEEEEbSS_ Line | Count | Source | 31 | 44 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 44 | using Types = std::decay_t<decltype(types)>; | 33 | 44 | using FromDataType = typename Types::LeftType; | 34 | 44 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 44 | if (context->enable_strict_mode()) { | 36 | 31 | cast_impl = std::make_shared< | 37 | 31 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 31 | } else { | 39 | 13 | cast_impl = std::make_shared< | 40 | 13 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 13 | } | 42 | 44 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 44 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_8EEEvEEEEbSS_ Line | Count | Source | 31 | 87 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 87 | using Types = std::decay_t<decltype(types)>; | 33 | 87 | using FromDataType = typename Types::LeftType; | 34 | 87 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 87 | if (context->enable_strict_mode()) { | 36 | 18 | cast_impl = std::make_shared< | 37 | 18 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 69 | } else { | 39 | 69 | cast_impl = std::make_shared< | 40 | 69 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 69 | } | 42 | 87 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 87 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_ Line | Count | Source | 31 | 99 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 99 | using Types = std::decay_t<decltype(types)>; | 33 | 99 | using FromDataType = typename Types::LeftType; | 34 | 99 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 99 | if (context->enable_strict_mode()) { | 36 | 18 | cast_impl = std::make_shared< | 37 | 18 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 81 | } else { | 39 | 81 | cast_impl = std::make_shared< | 40 | 81 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 81 | } | 42 | 99 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 99 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_28EEEvEEEEbSS_ Line | Count | Source | 31 | 168 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 168 | using Types = std::decay_t<decltype(types)>; | 33 | 168 | using FromDataType = typename Types::LeftType; | 34 | 168 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 168 | if (context->enable_strict_mode()) { | 36 | 36 | cast_impl = std::make_shared< | 37 | 36 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 132 | } else { | 39 | 132 | cast_impl = std::make_shared< | 40 | 132 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 132 | } | 42 | 168 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 168 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_29EEEvEEEEbSS_ 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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_20EEEvEEEEbSS_ Line | Count | Source | 31 | 132 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 132 | using Types = std::decay_t<decltype(types)>; | 33 | 132 | using FromDataType = typename Types::LeftType; | 34 | 132 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 132 | if (context->enable_strict_mode()) { | 36 | 30 | cast_impl = std::make_shared< | 37 | 30 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 102 | } else { | 39 | 102 | cast_impl = std::make_shared< | 40 | 102 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 102 | } | 42 | 132 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 132 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS2_ILS3_30EEEvEEEEbSS_ 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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_ Line | Count | Source | 31 | 272 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 272 | using Types = std::decay_t<decltype(types)>; | 33 | 272 | using FromDataType = typename Types::LeftType; | 34 | 272 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 272 | if (context->enable_strict_mode()) { | 36 | 92 | cast_impl = std::make_shared< | 37 | 92 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 180 | } else { | 39 | 180 | cast_impl = std::make_shared< | 40 | 180 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 180 | } | 42 | 272 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 272 | }; |
Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeDateEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeDateV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_18DataTypeDateTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_16DataTypeDateTimeEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeTimeV2EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_19DataTypeTimeStampTzEvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv4EvEEEEbSS_ Unexecuted instantiation: _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_12DataTypeIPv6EvEEEEbSS_ _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeStringEvEEEEbSS_ Line | Count | Source | 31 | 1.39k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 1.39k | using Types = std::decay_t<decltype(types)>; | 33 | 1.39k | using FromDataType = typename Types::LeftType; | 34 | 1.39k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 1.39k | if (context->enable_strict_mode()) { | 36 | 695 | cast_impl = std::make_shared< | 37 | 695 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 695 | } else { | 39 | 695 | cast_impl = std::make_shared< | 40 | 695 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 695 | } | 42 | 1.39k | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 1.39k | }; |
|
47 | | |
48 | 12.3k | 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 | 12.3k | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
54 | 12.3k | uint32_t result, size_t input_rows_count, |
55 | 12.3k | const NullMap::value_type* null_map = nullptr) { |
56 | 12.3k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, |
57 | 12.3k | null_map); |
58 | 12.3k | }; _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 4 | const NullMap::value_type* null_map = nullptr) { | 56 | 4 | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 4 | null_map); | 58 | 4 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 3.23k | const NullMap::value_type* null_map = nullptr) { | 56 | 3.23k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 3.23k | null_map); | 58 | 3.23k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 3.21k | const NullMap::value_type* null_map = nullptr) { | 56 | 3.21k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 3.21k | null_map); | 58 | 3.21k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 3.01k | const NullMap::value_type* null_map = nullptr) { | 56 | 3.01k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 3.01k | null_map); | 58 | 3.01k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 2.84k | const NullMap::value_type* null_map = nullptr) { | 56 | 2.84k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 2.84k | null_map); | 58 | 2.84k | }; |
|
59 | 12.3k | } _ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 4 | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { | 29 | 4 | std::shared_ptr<CastToBase> cast_impl; | 30 | | | 31 | 4 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 4 | using Types = std::decay_t<decltype(types)>; | 33 | 4 | using FromDataType = typename Types::LeftType; | 34 | 4 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 4 | if (context->enable_strict_mode()) { | 36 | 4 | cast_impl = std::make_shared< | 37 | 4 | 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 | 4 | return true; | 43 | 4 | } else { | 44 | 4 | return false; | 45 | 4 | } | 46 | 4 | }; | 47 | | | 48 | 4 | 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 | 4 | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 4 | uint32_t result, size_t input_rows_count, | 55 | 4 | const NullMap::value_type* null_map = nullptr) { | 56 | 4 | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 4 | null_map); | 58 | 4 | }; | 59 | 4 | } |
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 3.23k | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { | 29 | 3.23k | std::shared_ptr<CastToBase> cast_impl; | 30 | | | 31 | 3.23k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 3.23k | using Types = std::decay_t<decltype(types)>; | 33 | 3.23k | using FromDataType = typename Types::LeftType; | 34 | 3.23k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 3.23k | if (context->enable_strict_mode()) { | 36 | 3.23k | cast_impl = std::make_shared< | 37 | 3.23k | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 3.23k | } else { | 39 | 3.23k | cast_impl = std::make_shared< | 40 | 3.23k | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 3.23k | } | 42 | 3.23k | return true; | 43 | 3.23k | } else { | 44 | 3.23k | return false; | 45 | 3.23k | } | 46 | 3.23k | }; | 47 | | | 48 | 3.23k | 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 | 3.23k | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 3.23k | uint32_t result, size_t input_rows_count, | 55 | 3.23k | const NullMap::value_type* null_map = nullptr) { | 56 | 3.23k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 3.23k | null_map); | 58 | 3.23k | }; | 59 | 3.23k | } |
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 3.21k | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { | 29 | 3.21k | std::shared_ptr<CastToBase> cast_impl; | 30 | | | 31 | 3.21k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 3.21k | using Types = std::decay_t<decltype(types)>; | 33 | 3.21k | using FromDataType = typename Types::LeftType; | 34 | 3.21k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 3.21k | if (context->enable_strict_mode()) { | 36 | 3.21k | cast_impl = std::make_shared< | 37 | 3.21k | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 3.21k | } else { | 39 | 3.21k | cast_impl = std::make_shared< | 40 | 3.21k | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 3.21k | } | 42 | 3.21k | return true; | 43 | 3.21k | } else { | 44 | 3.21k | return false; | 45 | 3.21k | } | 46 | 3.21k | }; | 47 | | | 48 | 3.21k | 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 | 3.21k | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 3.21k | uint32_t result, size_t input_rows_count, | 55 | 3.21k | const NullMap::value_type* null_map = nullptr) { | 56 | 3.21k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 3.21k | null_map); | 58 | 3.21k | }; | 59 | 3.21k | } |
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 3.01k | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { | 29 | 3.01k | std::shared_ptr<CastToBase> cast_impl; | 30 | | | 31 | 3.01k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 3.01k | using Types = std::decay_t<decltype(types)>; | 33 | 3.01k | using FromDataType = typename Types::LeftType; | 34 | 3.01k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 3.01k | if (context->enable_strict_mode()) { | 36 | 3.01k | cast_impl = std::make_shared< | 37 | 3.01k | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 3.01k | } else { | 39 | 3.01k | cast_impl = std::make_shared< | 40 | 3.01k | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 3.01k | } | 42 | 3.01k | return true; | 43 | 3.01k | } else { | 44 | 3.01k | return false; | 45 | 3.01k | } | 46 | 3.01k | }; | 47 | | | 48 | 3.01k | 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 | 3.01k | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 3.01k | uint32_t result, size_t input_rows_count, | 55 | 3.01k | const NullMap::value_type* null_map = nullptr) { | 56 | 3.01k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 3.01k | null_map); | 58 | 3.01k | }; | 59 | 3.01k | } |
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 2.84k | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { | 29 | 2.84k | std::shared_ptr<CastToBase> cast_impl; | 30 | | | 31 | 2.84k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 2.84k | using Types = std::decay_t<decltype(types)>; | 33 | 2.84k | using FromDataType = typename Types::LeftType; | 34 | 2.84k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 2.84k | if (context->enable_strict_mode()) { | 36 | 2.84k | cast_impl = std::make_shared< | 37 | 2.84k | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 2.84k | } else { | 39 | 2.84k | cast_impl = std::make_shared< | 40 | 2.84k | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 2.84k | } | 42 | 2.84k | return true; | 43 | 2.84k | } else { | 44 | 2.84k | return false; | 45 | 2.84k | } | 46 | 2.84k | }; | 47 | | | 48 | 2.84k | 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 | 2.84k | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 2.84k | uint32_t result, size_t input_rows_count, | 55 | 2.84k | const NullMap::value_type* null_map = nullptr) { | 56 | 2.84k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 2.84k | null_map); | 58 | 2.84k | }; | 59 | 2.84k | } |
|
60 | | |
61 | | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type, |
62 | 12.3k | PrimitiveType to_type) { |
63 | 12.3k | switch (to_type) { |
64 | 4 | case TYPE_DECIMALV2: |
65 | 4 | return create_decimal_wrapper<DataTypeDecimalV2>(context, from_type); |
66 | 3.23k | case TYPE_DECIMAL32: |
67 | 3.23k | return create_decimal_wrapper<DataTypeDecimal32>(context, from_type); |
68 | 3.21k | case TYPE_DECIMAL64: |
69 | 3.21k | return create_decimal_wrapper<DataTypeDecimal64>(context, from_type); |
70 | 3.01k | case TYPE_DECIMAL128I: |
71 | 3.01k | return create_decimal_wrapper<DataTypeDecimal128>(context, from_type); |
72 | 2.84k | case TYPE_DECIMAL256: |
73 | 2.84k | return create_decimal_wrapper<DataTypeDecimal256>(context, 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 | 12.3k | } |
78 | 12.3k | } |
79 | | |
80 | | } // namespace doris::CastWrapper |