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(FunctionContext* context, 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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_2EEEvEEEEbSS_ Line | Count | Source | 31 | 8 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 8 | using Types = std::decay_t<decltype(types)>; | 33 | 8 | using FromDataType = typename Types::LeftType; | 34 | 8 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 8 | 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 | 8 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 8 | }; |
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 | 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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_ Line | Count | Source | 31 | 206 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 206 | using Types = std::decay_t<decltype(types)>; | 33 | 206 | using FromDataType = typename Types::LeftType; | 34 | 206 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 206 | if (context->enable_strict_mode()) { | 36 | 36 | cast_impl = std::make_shared< | 37 | 36 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 170 | } else { | 39 | 170 | cast_impl = std::make_shared< | 40 | 170 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 170 | } | 42 | 206 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 206 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairIS4_vEEEEbSS_ Line | Count | Source | 31 | 256 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 256 | using Types = std::decay_t<decltype(types)>; | 33 | 256 | using FromDataType = typename Types::LeftType; | 34 | 256 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 256 | if (context->enable_strict_mode()) { | 36 | 106 | cast_impl = std::make_shared< | 37 | 106 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 150 | } else { | 39 | 150 | cast_impl = std::make_shared< | 40 | 150 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 150 | } | 42 | 256 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 256 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_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 | 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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_5EEEvEEEEbSS_ 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 (context->enable_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_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_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 | 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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_6EEEvEEEEbSS_ 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 (context->enable_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_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlRKT_E_clINS_8TypePairINS_14DataTypeNumberILS3_9EEEvEEEEbSS_ Line | Count | Source | 31 | 182 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 182 | using Types = std::decay_t<decltype(types)>; | 33 | 182 | using FromDataType = typename Types::LeftType; | 34 | 182 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 182 | if (context->enable_strict_mode()) { | 36 | 36 | cast_impl = std::make_shared< | 37 | 36 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 146 | } else { | 39 | 146 | cast_impl = std::make_shared< | 40 | 146 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 146 | } | 42 | 182 | return true; | 43 | | } else { | 44 | | return false; | 45 | | } | 46 | 182 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_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 | 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 (context->enable_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_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (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_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 (context->enable_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_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_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 (context->enable_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_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 | 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 (context->enable_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](FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
54 | 24.6k | uint32_t result, size_t input_rows_count, |
55 | 24.6k | const NullMap::value_type* null_map = nullptr) { |
56 | 24.6k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, |
57 | 24.6k | null_map); |
58 | 24.6k | }; _ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 8 | const NullMap::value_type* null_map = nullptr) { | 56 | 8 | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 8 | null_map); | 58 | 8 | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 6.46k | const NullMap::value_type* null_map = nullptr) { | 56 | 6.46k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 6.46k | null_map); | 58 | 6.46k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 6.43k | const NullMap::value_type* null_map = nullptr) { | 56 | 6.43k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 6.43k | null_map); | 58 | 6.43k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 6.02k | const NullMap::value_type* null_map = nullptr) { | 56 | 6.02k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 6.02k | null_map); | 58 | 6.02k | }; |
_ZZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEEENKUlS8_SA_SF_jmSH_E_clES8_SA_SF_jmSH_ Line | Count | Source | 55 | 5.68k | const NullMap::value_type* null_map = nullptr) { | 56 | 5.68k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 5.68k | null_map); | 58 | 5.68k | }; |
|
59 | 24.6k | } _ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE20EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 8 | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { | 29 | 8 | std::shared_ptr<CastToBase> cast_impl; | 30 | | | 31 | 8 | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 8 | using Types = std::decay_t<decltype(types)>; | 33 | 8 | using FromDataType = typename Types::LeftType; | 34 | 8 | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 8 | if (context->enable_strict_mode()) { | 36 | 8 | cast_impl = std::make_shared< | 37 | 8 | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 8 | } else { | 39 | 8 | cast_impl = std::make_shared< | 40 | 8 | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 8 | } | 42 | 8 | return true; | 43 | 8 | } else { | 44 | 8 | return false; | 45 | 8 | } | 46 | 8 | }; | 47 | | | 48 | 8 | 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 | 8 | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 8 | uint32_t result, size_t input_rows_count, | 55 | 8 | const NullMap::value_type* null_map = nullptr) { | 56 | 8 | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 8 | null_map); | 58 | 8 | }; | 59 | 8 | } |
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE28EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 6.46k | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { | 29 | 6.46k | std::shared_ptr<CastToBase> cast_impl; | 30 | | | 31 | 6.46k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 6.46k | using Types = std::decay_t<decltype(types)>; | 33 | 6.46k | using FromDataType = typename Types::LeftType; | 34 | 6.46k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 6.46k | if (context->enable_strict_mode()) { | 36 | 6.46k | cast_impl = std::make_shared< | 37 | 6.46k | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 6.46k | } else { | 39 | 6.46k | cast_impl = std::make_shared< | 40 | 6.46k | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 6.46k | } | 42 | 6.46k | return true; | 43 | 6.46k | } else { | 44 | 6.46k | return false; | 45 | 6.46k | } | 46 | 6.46k | }; | 47 | | | 48 | 6.46k | 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.46k | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 6.46k | uint32_t result, size_t input_rows_count, | 55 | 6.46k | const NullMap::value_type* null_map = nullptr) { | 56 | 6.46k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 6.46k | null_map); | 58 | 6.46k | }; | 59 | 6.46k | } |
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE29EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 6.43k | WrapperType create_decimal_wrapper(FunctionContext* context, 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 (context->enable_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](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 6.43k | uint32_t result, size_t input_rows_count, | 55 | 6.43k | const NullMap::value_type* null_map = nullptr) { | 56 | 6.43k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 6.43k | null_map); | 58 | 6.43k | }; | 59 | 6.43k | } |
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE30EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 6.02k | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type) { | 29 | 6.02k | std::shared_ptr<CastToBase> cast_impl; | 30 | | | 31 | 6.02k | auto make_cast_wrapper = [&](const auto& types) -> bool { | 32 | 6.02k | using Types = std::decay_t<decltype(types)>; | 33 | 6.02k | using FromDataType = typename Types::LeftType; | 34 | 6.02k | if constexpr (type_allow_cast_to_decimal<FromDataType>) { | 35 | 6.02k | if (context->enable_strict_mode()) { | 36 | 6.02k | cast_impl = std::make_shared< | 37 | 6.02k | CastToImpl<CastModeType::StrictMode, FromDataType, ToDataType>>(); | 38 | 6.02k | } else { | 39 | 6.02k | cast_impl = std::make_shared< | 40 | 6.02k | CastToImpl<CastModeType::NonStrictMode, FromDataType, ToDataType>>(); | 41 | 6.02k | } | 42 | 6.02k | return true; | 43 | 6.02k | } else { | 44 | 6.02k | return false; | 45 | 6.02k | } | 46 | 6.02k | }; | 47 | | | 48 | 6.02k | 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.02k | return [cast_impl](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 6.02k | uint32_t result, size_t input_rows_count, | 55 | 6.02k | const NullMap::value_type* null_map = nullptr) { | 56 | 6.02k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 6.02k | null_map); | 58 | 6.02k | }; | 59 | 6.02k | } |
_ZN5doris11CastWrapper22create_decimal_wrapperINS_15DataTypeDecimalILNS_13PrimitiveTypeE35EEEEESt8functionIFNS_6StatusEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmPKhEES8_RKSt10shared_ptrIKNS_9IDataTypeEE Line | Count | Source | 28 | 5.68k | WrapperType create_decimal_wrapper(FunctionContext* context, 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 (context->enable_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](FunctionContext* context, Block& block, const ColumnNumbers& arguments, | 54 | 5.68k | uint32_t result, size_t input_rows_count, | 55 | 5.68k | const NullMap::value_type* null_map = nullptr) { | 56 | 5.68k | return cast_impl->execute_impl(context, block, arguments, result, input_rows_count, | 57 | 5.68k | null_map); | 58 | 5.68k | }; | 59 | 5.68k | } |
|
60 | | |
61 | | WrapperType create_decimal_wrapper(FunctionContext* context, const DataTypePtr& from_type, |
62 | 24.6k | PrimitiveType to_type) { |
63 | 24.6k | switch (to_type) { |
64 | 8 | case TYPE_DECIMALV2: |
65 | 8 | return create_decimal_wrapper<DataTypeDecimalV2>(context, from_type); |
66 | 6.46k | case TYPE_DECIMAL32: |
67 | 6.46k | return create_decimal_wrapper<DataTypeDecimal32>(context, from_type); |
68 | 6.43k | case TYPE_DECIMAL64: |
69 | 6.43k | return create_decimal_wrapper<DataTypeDecimal64>(context, from_type); |
70 | 6.02k | case TYPE_DECIMAL128I: |
71 | 6.02k | return create_decimal_wrapper<DataTypeDecimal128>(context, from_type); |
72 | 5.68k | case TYPE_DECIMAL256: |
73 | 5.68k | 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 | 24.6k | } |
78 | 24.6k | } |
79 | | |
80 | | } // namespace doris::CastWrapper |