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