142 | 6.30M | } Unexecuted instantiation: _ZN5doris11binary_castIldEET0_T_ Unexecuted instantiation: _ZN5doris11binary_castIdlEET0_T_ _ZN5doris11binary_castIjNS_11DateV2ValueINS_15DateV2ValueTypeEEEEET0_T_ Line | Count | Source | 71 | 1.14M | To binary_cast(From from) { | 72 | 1.14M | constexpr bool from_u64_to_db = match_v<From, uint64_t, To, double>; | 73 | 1.14M | constexpr bool from_i64_to_db = match_v<From, int64_t, To, double>; | 74 | 1.14M | constexpr bool from_db_to_i64 = match_v<From, double, To, int64_t>; | 75 | 1.14M | constexpr bool from_db_to_u64 = match_v<From, double, To, uint64_t>; | 76 | 1.14M | constexpr bool from_i64_to_vec_dt = match_v<From, __int64_t, To, doris::VecDateTimeValue>; | 77 | 1.14M | constexpr bool from_vec_dt_to_i64 = match_v<From, doris::VecDateTimeValue, To, __int64_t>; | 78 | 1.14M | constexpr bool from_i128_to_decv2 = match_v<From, __int128_t, To, DecimalV2Value>; | 79 | 1.14M | constexpr bool from_decv2_to_i128 = match_v<From, DecimalV2Value, To, __int128_t>; | 80 | 1.14M | constexpr bool from_decv2_to_i256 = match_v<From, DecimalV2Value, To, wide::Int256>; | 81 | | | 82 | 1.14M | constexpr bool from_ui32_to_date_v2 = match_v<From, uint32_t, To, DateV2Value<DateV2ValueType>>; | 83 | | | 84 | 1.14M | constexpr bool from_date_v2_to_ui32 = match_v<From, DateV2Value<DateV2ValueType>, To, uint32_t>; | 85 | | | 86 | 1.14M | constexpr bool from_ui64_to_datetime_v2 = | 87 | 1.14M | match_v<From, uint64_t, To, DateV2Value<DateTimeV2ValueType>>; | 88 | | | 89 | 1.14M | constexpr bool from_datetime_v2_to_ui64 = | 90 | 1.14M | match_v<From, DateV2Value<DateTimeV2ValueType>, To, uint64_t>; | 91 | | | 92 | 1.14M | static_assert(from_u64_to_db || from_i64_to_db || from_db_to_i64 || from_db_to_u64 || | 93 | 1.14M | from_i64_to_vec_dt || from_vec_dt_to_i64 || from_i128_to_decv2 || | 94 | 1.14M | from_decv2_to_i128 || from_decv2_to_i256 || from_ui32_to_date_v2 || | 95 | 1.14M | from_date_v2_to_ui32 || from_ui64_to_datetime_v2 || from_datetime_v2_to_ui64); | 96 | | | 97 | 1.14M | if constexpr (from_u64_to_db) { | 98 | 1.14M | TypeConverter conv; | 99 | 1.14M | conv.u64 = from; | 100 | 1.14M | return conv.dbl; | 101 | 1.14M | } else if constexpr (from_i64_to_db) { | 102 | 1.14M | TypeConverter conv; | 103 | 1.14M | conv.i64 = from; | 104 | 1.14M | return conv.dbl; | 105 | 1.14M | } else if constexpr (from_db_to_i64) { | 106 | 1.14M | TypeConverter conv; | 107 | 1.14M | conv.dbl = from; | 108 | 1.14M | return conv.i64; | 109 | 1.14M | } else if constexpr (from_db_to_u64) { | 110 | 1.14M | TypeConverter conv; | 111 | 1.14M | conv.dbl = from; | 112 | 1.14M | return conv.u64; | 113 | 1.14M | } else if constexpr (from_i64_to_vec_dt) { | 114 | 1.14M | VecDateTimeInt64Union conv = {.i64 = from}; | 115 | 1.14M | return conv.dt; | 116 | 1.14M | } else if constexpr (from_ui32_to_date_v2) { | 117 | 1.14M | DateV2UInt32Union conv = {.ui32 = from}; | 118 | 1.14M | return conv.dt; | 119 | 1.14M | } else if constexpr (from_date_v2_to_ui32) { | 120 | 1.14M | DateV2UInt32Union conv = {.dt = from}; | 121 | 1.14M | return conv.ui32; | 122 | 1.14M | } else if constexpr (from_ui64_to_datetime_v2) { | 123 | 1.14M | DateTimeV2UInt64Union conv = {.ui64 = from}; | 124 | 1.14M | return conv.dt; | 125 | 1.14M | } else if constexpr (from_datetime_v2_to_ui64) { | 126 | 1.14M | DateTimeV2UInt64Union conv = {.dt = from}; | 127 | 1.14M | return conv.ui64; | 128 | 1.14M | } else if constexpr (from_vec_dt_to_i64) { | 129 | 1.14M | VecDateTimeInt64Union conv = {.dt = from}; | 130 | 1.14M | return conv.i64; | 131 | 1.14M | } else if constexpr (from_i128_to_decv2) { | 132 | 1.14M | DecimalInt128Union conv; | 133 | 1.14M | conv.i128 = from; | 134 | 1.14M | return conv.decimal; | 135 | 1.14M | } else if constexpr (from_decv2_to_i128) { | 136 | 1.14M | DecimalInt128Union conv; | 137 | 1.14M | conv.decimal = from; | 138 | 1.14M | return conv.i128; | 139 | 1.14M | } else { | 140 | 1.14M | throw Exception(Status::FatalError("__builtin_unreachable")); | 141 | 1.14M | } | 142 | 1.14M | } |
_ZN5doris11binary_castImNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEET0_T_ Line | Count | Source | 71 | 3.51M | To binary_cast(From from) { | 72 | 3.51M | constexpr bool from_u64_to_db = match_v<From, uint64_t, To, double>; | 73 | 3.51M | constexpr bool from_i64_to_db = match_v<From, int64_t, To, double>; | 74 | 3.51M | constexpr bool from_db_to_i64 = match_v<From, double, To, int64_t>; | 75 | 3.51M | constexpr bool from_db_to_u64 = match_v<From, double, To, uint64_t>; | 76 | 3.51M | constexpr bool from_i64_to_vec_dt = match_v<From, __int64_t, To, doris::VecDateTimeValue>; | 77 | 3.51M | constexpr bool from_vec_dt_to_i64 = match_v<From, doris::VecDateTimeValue, To, __int64_t>; | 78 | 3.51M | constexpr bool from_i128_to_decv2 = match_v<From, __int128_t, To, DecimalV2Value>; | 79 | 3.51M | constexpr bool from_decv2_to_i128 = match_v<From, DecimalV2Value, To, __int128_t>; | 80 | 3.51M | constexpr bool from_decv2_to_i256 = match_v<From, DecimalV2Value, To, wide::Int256>; | 81 | | | 82 | 3.51M | constexpr bool from_ui32_to_date_v2 = match_v<From, uint32_t, To, DateV2Value<DateV2ValueType>>; | 83 | | | 84 | 3.51M | constexpr bool from_date_v2_to_ui32 = match_v<From, DateV2Value<DateV2ValueType>, To, uint32_t>; | 85 | | | 86 | 3.51M | constexpr bool from_ui64_to_datetime_v2 = | 87 | 3.51M | match_v<From, uint64_t, To, DateV2Value<DateTimeV2ValueType>>; | 88 | | | 89 | 3.51M | constexpr bool from_datetime_v2_to_ui64 = | 90 | 3.51M | match_v<From, DateV2Value<DateTimeV2ValueType>, To, uint64_t>; | 91 | | | 92 | 3.51M | static_assert(from_u64_to_db || from_i64_to_db || from_db_to_i64 || from_db_to_u64 || | 93 | 3.51M | from_i64_to_vec_dt || from_vec_dt_to_i64 || from_i128_to_decv2 || | 94 | 3.51M | from_decv2_to_i128 || from_decv2_to_i256 || from_ui32_to_date_v2 || | 95 | 3.51M | from_date_v2_to_ui32 || from_ui64_to_datetime_v2 || from_datetime_v2_to_ui64); | 96 | | | 97 | 3.51M | if constexpr (from_u64_to_db) { | 98 | 3.51M | TypeConverter conv; | 99 | 3.51M | conv.u64 = from; | 100 | 3.51M | return conv.dbl; | 101 | 3.51M | } else if constexpr (from_i64_to_db) { | 102 | 3.51M | TypeConverter conv; | 103 | 3.51M | conv.i64 = from; | 104 | 3.51M | return conv.dbl; | 105 | 3.51M | } else if constexpr (from_db_to_i64) { | 106 | 3.51M | TypeConverter conv; | 107 | 3.51M | conv.dbl = from; | 108 | 3.51M | return conv.i64; | 109 | 3.51M | } else if constexpr (from_db_to_u64) { | 110 | 3.51M | TypeConverter conv; | 111 | 3.51M | conv.dbl = from; | 112 | 3.51M | return conv.u64; | 113 | 3.51M | } else if constexpr (from_i64_to_vec_dt) { | 114 | 3.51M | VecDateTimeInt64Union conv = {.i64 = from}; | 115 | 3.51M | return conv.dt; | 116 | 3.51M | } else if constexpr (from_ui32_to_date_v2) { | 117 | 3.51M | DateV2UInt32Union conv = {.ui32 = from}; | 118 | 3.51M | return conv.dt; | 119 | 3.51M | } else if constexpr (from_date_v2_to_ui32) { | 120 | 3.51M | DateV2UInt32Union conv = {.dt = from}; | 121 | 3.51M | return conv.ui32; | 122 | 3.51M | } else if constexpr (from_ui64_to_datetime_v2) { | 123 | 3.51M | DateTimeV2UInt64Union conv = {.ui64 = from}; | 124 | 3.51M | return conv.dt; | 125 | 3.51M | } else if constexpr (from_datetime_v2_to_ui64) { | 126 | 3.51M | DateTimeV2UInt64Union conv = {.dt = from}; | 127 | 3.51M | return conv.ui64; | 128 | 3.51M | } else if constexpr (from_vec_dt_to_i64) { | 129 | 3.51M | VecDateTimeInt64Union conv = {.dt = from}; | 130 | 3.51M | return conv.i64; | 131 | 3.51M | } else if constexpr (from_i128_to_decv2) { | 132 | 3.51M | DecimalInt128Union conv; | 133 | 3.51M | conv.i128 = from; | 134 | 3.51M | return conv.decimal; | 135 | 3.51M | } else if constexpr (from_decv2_to_i128) { | 136 | 3.51M | DecimalInt128Union conv; | 137 | 3.51M | conv.decimal = from; | 138 | 3.51M | return conv.i128; | 139 | 3.51M | } else { | 140 | 3.51M | throw Exception(Status::FatalError("__builtin_unreachable")); | 141 | 3.51M | } | 142 | 3.51M | } |
_ZN5doris11binary_castIlNS_16VecDateTimeValueEEET0_T_ Line | Count | Source | 71 | 1.38M | To binary_cast(From from) { | 72 | 1.38M | constexpr bool from_u64_to_db = match_v<From, uint64_t, To, double>; | 73 | 1.38M | constexpr bool from_i64_to_db = match_v<From, int64_t, To, double>; | 74 | 1.38M | constexpr bool from_db_to_i64 = match_v<From, double, To, int64_t>; | 75 | 1.38M | constexpr bool from_db_to_u64 = match_v<From, double, To, uint64_t>; | 76 | 1.38M | constexpr bool from_i64_to_vec_dt = match_v<From, __int64_t, To, doris::VecDateTimeValue>; | 77 | 1.38M | constexpr bool from_vec_dt_to_i64 = match_v<From, doris::VecDateTimeValue, To, __int64_t>; | 78 | 1.38M | constexpr bool from_i128_to_decv2 = match_v<From, __int128_t, To, DecimalV2Value>; | 79 | 1.38M | constexpr bool from_decv2_to_i128 = match_v<From, DecimalV2Value, To, __int128_t>; | 80 | 1.38M | constexpr bool from_decv2_to_i256 = match_v<From, DecimalV2Value, To, wide::Int256>; | 81 | | | 82 | 1.38M | constexpr bool from_ui32_to_date_v2 = match_v<From, uint32_t, To, DateV2Value<DateV2ValueType>>; | 83 | | | 84 | 1.38M | constexpr bool from_date_v2_to_ui32 = match_v<From, DateV2Value<DateV2ValueType>, To, uint32_t>; | 85 | | | 86 | 1.38M | constexpr bool from_ui64_to_datetime_v2 = | 87 | 1.38M | match_v<From, uint64_t, To, DateV2Value<DateTimeV2ValueType>>; | 88 | | | 89 | 1.38M | constexpr bool from_datetime_v2_to_ui64 = | 90 | 1.38M | match_v<From, DateV2Value<DateTimeV2ValueType>, To, uint64_t>; | 91 | | | 92 | 1.38M | static_assert(from_u64_to_db || from_i64_to_db || from_db_to_i64 || from_db_to_u64 || | 93 | 1.38M | from_i64_to_vec_dt || from_vec_dt_to_i64 || from_i128_to_decv2 || | 94 | 1.38M | from_decv2_to_i128 || from_decv2_to_i256 || from_ui32_to_date_v2 || | 95 | 1.38M | from_date_v2_to_ui32 || from_ui64_to_datetime_v2 || from_datetime_v2_to_ui64); | 96 | | | 97 | 1.38M | if constexpr (from_u64_to_db) { | 98 | 1.38M | TypeConverter conv; | 99 | 1.38M | conv.u64 = from; | 100 | 1.38M | return conv.dbl; | 101 | 1.38M | } else if constexpr (from_i64_to_db) { | 102 | 1.38M | TypeConverter conv; | 103 | 1.38M | conv.i64 = from; | 104 | 1.38M | return conv.dbl; | 105 | 1.38M | } else if constexpr (from_db_to_i64) { | 106 | 1.38M | TypeConverter conv; | 107 | 1.38M | conv.dbl = from; | 108 | 1.38M | return conv.i64; | 109 | 1.38M | } else if constexpr (from_db_to_u64) { | 110 | 1.38M | TypeConverter conv; | 111 | 1.38M | conv.dbl = from; | 112 | 1.38M | return conv.u64; | 113 | 1.38M | } else if constexpr (from_i64_to_vec_dt) { | 114 | 1.38M | VecDateTimeInt64Union conv = {.i64 = from}; | 115 | 1.38M | return conv.dt; | 116 | 1.38M | } else if constexpr (from_ui32_to_date_v2) { | 117 | 1.38M | DateV2UInt32Union conv = {.ui32 = from}; | 118 | 1.38M | return conv.dt; | 119 | 1.38M | } else if constexpr (from_date_v2_to_ui32) { | 120 | 1.38M | DateV2UInt32Union conv = {.dt = from}; | 121 | 1.38M | return conv.ui32; | 122 | 1.38M | } else if constexpr (from_ui64_to_datetime_v2) { | 123 | 1.38M | DateTimeV2UInt64Union conv = {.ui64 = from}; | 124 | 1.38M | return conv.dt; | 125 | 1.38M | } else if constexpr (from_datetime_v2_to_ui64) { | 126 | 1.38M | DateTimeV2UInt64Union conv = {.dt = from}; | 127 | 1.38M | return conv.ui64; | 128 | 1.38M | } else if constexpr (from_vec_dt_to_i64) { | 129 | 1.38M | VecDateTimeInt64Union conv = {.dt = from}; | 130 | 1.38M | return conv.i64; | 131 | 1.38M | } else if constexpr (from_i128_to_decv2) { | 132 | 1.38M | DecimalInt128Union conv; | 133 | 1.38M | conv.i128 = from; | 134 | 1.38M | return conv.decimal; | 135 | 1.38M | } else if constexpr (from_decv2_to_i128) { | 136 | 1.38M | DecimalInt128Union conv; | 137 | 1.38M | conv.decimal = from; | 138 | 1.38M | return conv.i128; | 139 | 1.38M | } else { | 140 | 1.38M | throw Exception(Status::FatalError("__builtin_unreachable")); | 141 | 1.38M | } | 142 | 1.38M | } |
_ZN5doris11binary_castINS_16VecDateTimeValueElEET0_T_ Line | Count | Source | 71 | 88.7k | To binary_cast(From from) { | 72 | 88.7k | constexpr bool from_u64_to_db = match_v<From, uint64_t, To, double>; | 73 | 88.7k | constexpr bool from_i64_to_db = match_v<From, int64_t, To, double>; | 74 | 88.7k | constexpr bool from_db_to_i64 = match_v<From, double, To, int64_t>; | 75 | 88.7k | constexpr bool from_db_to_u64 = match_v<From, double, To, uint64_t>; | 76 | 88.7k | constexpr bool from_i64_to_vec_dt = match_v<From, __int64_t, To, doris::VecDateTimeValue>; | 77 | 88.7k | constexpr bool from_vec_dt_to_i64 = match_v<From, doris::VecDateTimeValue, To, __int64_t>; | 78 | 88.7k | constexpr bool from_i128_to_decv2 = match_v<From, __int128_t, To, DecimalV2Value>; | 79 | 88.7k | constexpr bool from_decv2_to_i128 = match_v<From, DecimalV2Value, To, __int128_t>; | 80 | 88.7k | constexpr bool from_decv2_to_i256 = match_v<From, DecimalV2Value, To, wide::Int256>; | 81 | | | 82 | 88.7k | constexpr bool from_ui32_to_date_v2 = match_v<From, uint32_t, To, DateV2Value<DateV2ValueType>>; | 83 | | | 84 | 88.7k | constexpr bool from_date_v2_to_ui32 = match_v<From, DateV2Value<DateV2ValueType>, To, uint32_t>; | 85 | | | 86 | 88.7k | constexpr bool from_ui64_to_datetime_v2 = | 87 | 88.7k | match_v<From, uint64_t, To, DateV2Value<DateTimeV2ValueType>>; | 88 | | | 89 | 88.7k | constexpr bool from_datetime_v2_to_ui64 = | 90 | 88.7k | match_v<From, DateV2Value<DateTimeV2ValueType>, To, uint64_t>; | 91 | | | 92 | 88.7k | static_assert(from_u64_to_db || from_i64_to_db || from_db_to_i64 || from_db_to_u64 || | 93 | 88.7k | from_i64_to_vec_dt || from_vec_dt_to_i64 || from_i128_to_decv2 || | 94 | 88.7k | from_decv2_to_i128 || from_decv2_to_i256 || from_ui32_to_date_v2 || | 95 | 88.7k | from_date_v2_to_ui32 || from_ui64_to_datetime_v2 || from_datetime_v2_to_ui64); | 96 | | | 97 | 88.7k | if constexpr (from_u64_to_db) { | 98 | 88.7k | TypeConverter conv; | 99 | 88.7k | conv.u64 = from; | 100 | 88.7k | return conv.dbl; | 101 | 88.7k | } else if constexpr (from_i64_to_db) { | 102 | 88.7k | TypeConverter conv; | 103 | 88.7k | conv.i64 = from; | 104 | 88.7k | return conv.dbl; | 105 | 88.7k | } else if constexpr (from_db_to_i64) { | 106 | 88.7k | TypeConverter conv; | 107 | 88.7k | conv.dbl = from; | 108 | 88.7k | return conv.i64; | 109 | 88.7k | } else if constexpr (from_db_to_u64) { | 110 | 88.7k | TypeConverter conv; | 111 | 88.7k | conv.dbl = from; | 112 | 88.7k | return conv.u64; | 113 | 88.7k | } else if constexpr (from_i64_to_vec_dt) { | 114 | 88.7k | VecDateTimeInt64Union conv = {.i64 = from}; | 115 | 88.7k | return conv.dt; | 116 | 88.7k | } else if constexpr (from_ui32_to_date_v2) { | 117 | 88.7k | DateV2UInt32Union conv = {.ui32 = from}; | 118 | 88.7k | return conv.dt; | 119 | 88.7k | } else if constexpr (from_date_v2_to_ui32) { | 120 | 88.7k | DateV2UInt32Union conv = {.dt = from}; | 121 | 88.7k | return conv.ui32; | 122 | 88.7k | } else if constexpr (from_ui64_to_datetime_v2) { | 123 | 88.7k | DateTimeV2UInt64Union conv = {.ui64 = from}; | 124 | 88.7k | return conv.dt; | 125 | 88.7k | } else if constexpr (from_datetime_v2_to_ui64) { | 126 | 88.7k | DateTimeV2UInt64Union conv = {.dt = from}; | 127 | 88.7k | return conv.ui64; | 128 | 88.7k | } else if constexpr (from_vec_dt_to_i64) { | 129 | 88.7k | VecDateTimeInt64Union conv = {.dt = from}; | 130 | 88.7k | return conv.i64; | 131 | 88.7k | } else if constexpr (from_i128_to_decv2) { | 132 | 88.7k | DecimalInt128Union conv; | 133 | 88.7k | conv.i128 = from; | 134 | 88.7k | return conv.decimal; | 135 | 88.7k | } else if constexpr (from_decv2_to_i128) { | 136 | 88.7k | DecimalInt128Union conv; | 137 | 88.7k | conv.decimal = from; | 138 | 88.7k | return conv.i128; | 139 | 88.7k | } else { | 140 | 88.7k | throw Exception(Status::FatalError("__builtin_unreachable")); | 141 | 88.7k | } | 142 | 88.7k | } |
_ZN5doris11binary_castINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEmEET0_T_ Line | Count | Source | 71 | 149k | To binary_cast(From from) { | 72 | 149k | constexpr bool from_u64_to_db = match_v<From, uint64_t, To, double>; | 73 | 149k | constexpr bool from_i64_to_db = match_v<From, int64_t, To, double>; | 74 | 149k | constexpr bool from_db_to_i64 = match_v<From, double, To, int64_t>; | 75 | 149k | constexpr bool from_db_to_u64 = match_v<From, double, To, uint64_t>; | 76 | 149k | constexpr bool from_i64_to_vec_dt = match_v<From, __int64_t, To, doris::VecDateTimeValue>; | 77 | 149k | constexpr bool from_vec_dt_to_i64 = match_v<From, doris::VecDateTimeValue, To, __int64_t>; | 78 | 149k | constexpr bool from_i128_to_decv2 = match_v<From, __int128_t, To, DecimalV2Value>; | 79 | 149k | constexpr bool from_decv2_to_i128 = match_v<From, DecimalV2Value, To, __int128_t>; | 80 | 149k | constexpr bool from_decv2_to_i256 = match_v<From, DecimalV2Value, To, wide::Int256>; | 81 | | | 82 | 149k | constexpr bool from_ui32_to_date_v2 = match_v<From, uint32_t, To, DateV2Value<DateV2ValueType>>; | 83 | | | 84 | 149k | constexpr bool from_date_v2_to_ui32 = match_v<From, DateV2Value<DateV2ValueType>, To, uint32_t>; | 85 | | | 86 | 149k | constexpr bool from_ui64_to_datetime_v2 = | 87 | 149k | match_v<From, uint64_t, To, DateV2Value<DateTimeV2ValueType>>; | 88 | | | 89 | 149k | constexpr bool from_datetime_v2_to_ui64 = | 90 | 149k | match_v<From, DateV2Value<DateTimeV2ValueType>, To, uint64_t>; | 91 | | | 92 | 149k | static_assert(from_u64_to_db || from_i64_to_db || from_db_to_i64 || from_db_to_u64 || | 93 | 149k | from_i64_to_vec_dt || from_vec_dt_to_i64 || from_i128_to_decv2 || | 94 | 149k | from_decv2_to_i128 || from_decv2_to_i256 || from_ui32_to_date_v2 || | 95 | 149k | from_date_v2_to_ui32 || from_ui64_to_datetime_v2 || from_datetime_v2_to_ui64); | 96 | | | 97 | 149k | if constexpr (from_u64_to_db) { | 98 | 149k | TypeConverter conv; | 99 | 149k | conv.u64 = from; | 100 | 149k | return conv.dbl; | 101 | 149k | } else if constexpr (from_i64_to_db) { | 102 | 149k | TypeConverter conv; | 103 | 149k | conv.i64 = from; | 104 | 149k | return conv.dbl; | 105 | 149k | } else if constexpr (from_db_to_i64) { | 106 | 149k | TypeConverter conv; | 107 | 149k | conv.dbl = from; | 108 | 149k | return conv.i64; | 109 | 149k | } else if constexpr (from_db_to_u64) { | 110 | 149k | TypeConverter conv; | 111 | 149k | conv.dbl = from; | 112 | 149k | return conv.u64; | 113 | 149k | } else if constexpr (from_i64_to_vec_dt) { | 114 | 149k | VecDateTimeInt64Union conv = {.i64 = from}; | 115 | 149k | return conv.dt; | 116 | 149k | } else if constexpr (from_ui32_to_date_v2) { | 117 | 149k | DateV2UInt32Union conv = {.ui32 = from}; | 118 | 149k | return conv.dt; | 119 | 149k | } else if constexpr (from_date_v2_to_ui32) { | 120 | 149k | DateV2UInt32Union conv = {.dt = from}; | 121 | 149k | return conv.ui32; | 122 | 149k | } else if constexpr (from_ui64_to_datetime_v2) { | 123 | 149k | DateTimeV2UInt64Union conv = {.ui64 = from}; | 124 | 149k | return conv.dt; | 125 | 149k | } else if constexpr (from_datetime_v2_to_ui64) { | 126 | 149k | DateTimeV2UInt64Union conv = {.dt = from}; | 127 | 149k | return conv.ui64; | 128 | 149k | } else if constexpr (from_vec_dt_to_i64) { | 129 | 149k | VecDateTimeInt64Union conv = {.dt = from}; | 130 | 149k | return conv.i64; | 131 | 149k | } else if constexpr (from_i128_to_decv2) { | 132 | 149k | DecimalInt128Union conv; | 133 | 149k | conv.i128 = from; | 134 | 149k | return conv.decimal; | 135 | 149k | } else if constexpr (from_decv2_to_i128) { | 136 | 149k | DecimalInt128Union conv; | 137 | 149k | conv.decimal = from; | 138 | 149k | return conv.i128; | 139 | 149k | } else { | 140 | 149k | throw Exception(Status::FatalError("__builtin_unreachable")); | 141 | 149k | } | 142 | 149k | } |
_ZN5doris11binary_castINS_11DateV2ValueINS_15DateV2ValueTypeEEEjEET0_T_ Line | Count | Source | 71 | 27.4k | To binary_cast(From from) { | 72 | 27.4k | constexpr bool from_u64_to_db = match_v<From, uint64_t, To, double>; | 73 | 27.4k | constexpr bool from_i64_to_db = match_v<From, int64_t, To, double>; | 74 | 27.4k | constexpr bool from_db_to_i64 = match_v<From, double, To, int64_t>; | 75 | 27.4k | constexpr bool from_db_to_u64 = match_v<From, double, To, uint64_t>; | 76 | 27.4k | constexpr bool from_i64_to_vec_dt = match_v<From, __int64_t, To, doris::VecDateTimeValue>; | 77 | 27.4k | constexpr bool from_vec_dt_to_i64 = match_v<From, doris::VecDateTimeValue, To, __int64_t>; | 78 | 27.4k | constexpr bool from_i128_to_decv2 = match_v<From, __int128_t, To, DecimalV2Value>; | 79 | 27.4k | constexpr bool from_decv2_to_i128 = match_v<From, DecimalV2Value, To, __int128_t>; | 80 | 27.4k | constexpr bool from_decv2_to_i256 = match_v<From, DecimalV2Value, To, wide::Int256>; | 81 | | | 82 | 27.4k | constexpr bool from_ui32_to_date_v2 = match_v<From, uint32_t, To, DateV2Value<DateV2ValueType>>; | 83 | | | 84 | 27.4k | constexpr bool from_date_v2_to_ui32 = match_v<From, DateV2Value<DateV2ValueType>, To, uint32_t>; | 85 | | | 86 | 27.4k | constexpr bool from_ui64_to_datetime_v2 = | 87 | 27.4k | match_v<From, uint64_t, To, DateV2Value<DateTimeV2ValueType>>; | 88 | | | 89 | 27.4k | constexpr bool from_datetime_v2_to_ui64 = | 90 | 27.4k | match_v<From, DateV2Value<DateTimeV2ValueType>, To, uint64_t>; | 91 | | | 92 | 27.4k | static_assert(from_u64_to_db || from_i64_to_db || from_db_to_i64 || from_db_to_u64 || | 93 | 27.4k | from_i64_to_vec_dt || from_vec_dt_to_i64 || from_i128_to_decv2 || | 94 | 27.4k | from_decv2_to_i128 || from_decv2_to_i256 || from_ui32_to_date_v2 || | 95 | 27.4k | from_date_v2_to_ui32 || from_ui64_to_datetime_v2 || from_datetime_v2_to_ui64); | 96 | | | 97 | 27.4k | if constexpr (from_u64_to_db) { | 98 | 27.4k | TypeConverter conv; | 99 | 27.4k | conv.u64 = from; | 100 | 27.4k | return conv.dbl; | 101 | 27.4k | } else if constexpr (from_i64_to_db) { | 102 | 27.4k | TypeConverter conv; | 103 | 27.4k | conv.i64 = from; | 104 | 27.4k | return conv.dbl; | 105 | 27.4k | } else if constexpr (from_db_to_i64) { | 106 | 27.4k | TypeConverter conv; | 107 | 27.4k | conv.dbl = from; | 108 | 27.4k | return conv.i64; | 109 | 27.4k | } else if constexpr (from_db_to_u64) { | 110 | 27.4k | TypeConverter conv; | 111 | 27.4k | conv.dbl = from; | 112 | 27.4k | return conv.u64; | 113 | 27.4k | } else if constexpr (from_i64_to_vec_dt) { | 114 | 27.4k | VecDateTimeInt64Union conv = {.i64 = from}; | 115 | 27.4k | return conv.dt; | 116 | 27.4k | } else if constexpr (from_ui32_to_date_v2) { | 117 | 27.4k | DateV2UInt32Union conv = {.ui32 = from}; | 118 | 27.4k | return conv.dt; | 119 | 27.4k | } else if constexpr (from_date_v2_to_ui32) { | 120 | 27.4k | DateV2UInt32Union conv = {.dt = from}; | 121 | 27.4k | return conv.ui32; | 122 | 27.4k | } else if constexpr (from_ui64_to_datetime_v2) { | 123 | 27.4k | DateTimeV2UInt64Union conv = {.ui64 = from}; | 124 | 27.4k | return conv.dt; | 125 | 27.4k | } else if constexpr (from_datetime_v2_to_ui64) { | 126 | 27.4k | DateTimeV2UInt64Union conv = {.dt = from}; | 127 | 27.4k | return conv.ui64; | 128 | 27.4k | } else if constexpr (from_vec_dt_to_i64) { | 129 | 27.4k | VecDateTimeInt64Union conv = {.dt = from}; | 130 | 27.4k | return conv.i64; | 131 | 27.4k | } else if constexpr (from_i128_to_decv2) { | 132 | 27.4k | DecimalInt128Union conv; | 133 | 27.4k | conv.i128 = from; | 134 | 27.4k | return conv.decimal; | 135 | 27.4k | } else if constexpr (from_decv2_to_i128) { | 136 | 27.4k | DecimalInt128Union conv; | 137 | 27.4k | conv.decimal = from; | 138 | 27.4k | return conv.i128; | 139 | 27.4k | } else { | 140 | 27.4k | throw Exception(Status::FatalError("__builtin_unreachable")); | 141 | 27.4k | } | 142 | 27.4k | } |
_ZN5doris11binary_castINS_14DecimalV2ValueEnEET0_T_ Line | Count | Source | 71 | 48 | To binary_cast(From from) { | 72 | 48 | constexpr bool from_u64_to_db = match_v<From, uint64_t, To, double>; | 73 | 48 | constexpr bool from_i64_to_db = match_v<From, int64_t, To, double>; | 74 | 48 | constexpr bool from_db_to_i64 = match_v<From, double, To, int64_t>; | 75 | 48 | constexpr bool from_db_to_u64 = match_v<From, double, To, uint64_t>; | 76 | 48 | constexpr bool from_i64_to_vec_dt = match_v<From, __int64_t, To, doris::VecDateTimeValue>; | 77 | 48 | constexpr bool from_vec_dt_to_i64 = match_v<From, doris::VecDateTimeValue, To, __int64_t>; | 78 | 48 | constexpr bool from_i128_to_decv2 = match_v<From, __int128_t, To, DecimalV2Value>; | 79 | 48 | constexpr bool from_decv2_to_i128 = match_v<From, DecimalV2Value, To, __int128_t>; | 80 | 48 | constexpr bool from_decv2_to_i256 = match_v<From, DecimalV2Value, To, wide::Int256>; | 81 | | | 82 | 48 | constexpr bool from_ui32_to_date_v2 = match_v<From, uint32_t, To, DateV2Value<DateV2ValueType>>; | 83 | | | 84 | 48 | constexpr bool from_date_v2_to_ui32 = match_v<From, DateV2Value<DateV2ValueType>, To, uint32_t>; | 85 | | | 86 | 48 | constexpr bool from_ui64_to_datetime_v2 = | 87 | 48 | match_v<From, uint64_t, To, DateV2Value<DateTimeV2ValueType>>; | 88 | | | 89 | 48 | constexpr bool from_datetime_v2_to_ui64 = | 90 | 48 | match_v<From, DateV2Value<DateTimeV2ValueType>, To, uint64_t>; | 91 | | | 92 | 48 | static_assert(from_u64_to_db || from_i64_to_db || from_db_to_i64 || from_db_to_u64 || | 93 | 48 | from_i64_to_vec_dt || from_vec_dt_to_i64 || from_i128_to_decv2 || | 94 | 48 | from_decv2_to_i128 || from_decv2_to_i256 || from_ui32_to_date_v2 || | 95 | 48 | from_date_v2_to_ui32 || from_ui64_to_datetime_v2 || from_datetime_v2_to_ui64); | 96 | | | 97 | 48 | if constexpr (from_u64_to_db) { | 98 | 48 | TypeConverter conv; | 99 | 48 | conv.u64 = from; | 100 | 48 | return conv.dbl; | 101 | 48 | } else if constexpr (from_i64_to_db) { | 102 | 48 | TypeConverter conv; | 103 | 48 | conv.i64 = from; | 104 | 48 | return conv.dbl; | 105 | 48 | } else if constexpr (from_db_to_i64) { | 106 | 48 | TypeConverter conv; | 107 | 48 | conv.dbl = from; | 108 | 48 | return conv.i64; | 109 | 48 | } else if constexpr (from_db_to_u64) { | 110 | 48 | TypeConverter conv; | 111 | 48 | conv.dbl = from; | 112 | 48 | return conv.u64; | 113 | 48 | } else if constexpr (from_i64_to_vec_dt) { | 114 | 48 | VecDateTimeInt64Union conv = {.i64 = from}; | 115 | 48 | return conv.dt; | 116 | 48 | } else if constexpr (from_ui32_to_date_v2) { | 117 | 48 | DateV2UInt32Union conv = {.ui32 = from}; | 118 | 48 | return conv.dt; | 119 | 48 | } else if constexpr (from_date_v2_to_ui32) { | 120 | 48 | DateV2UInt32Union conv = {.dt = from}; | 121 | 48 | return conv.ui32; | 122 | 48 | } else if constexpr (from_ui64_to_datetime_v2) { | 123 | 48 | DateTimeV2UInt64Union conv = {.ui64 = from}; | 124 | 48 | return conv.dt; | 125 | 48 | } else if constexpr (from_datetime_v2_to_ui64) { | 126 | 48 | DateTimeV2UInt64Union conv = {.dt = from}; | 127 | 48 | return conv.ui64; | 128 | 48 | } else if constexpr (from_vec_dt_to_i64) { | 129 | 48 | VecDateTimeInt64Union conv = {.dt = from}; | 130 | 48 | return conv.i64; | 131 | 48 | } else if constexpr (from_i128_to_decv2) { | 132 | 48 | DecimalInt128Union conv; | 133 | 48 | conv.i128 = from; | 134 | 48 | return conv.decimal; | 135 | 48 | } else if constexpr (from_decv2_to_i128) { | 136 | 48 | DecimalInt128Union conv; | 137 | 48 | conv.decimal = from; | 138 | 48 | return conv.i128; | 139 | 48 | } else { | 140 | 48 | throw Exception(Status::FatalError("__builtin_unreachable")); | 141 | 48 | } | 142 | 48 | } |
Unexecuted instantiation: _ZN5doris11binary_castInNS_14DecimalV2ValueEEET0_T_ Unexecuted instantiation: _ZN5doris11binary_castImdEET0_T_ |