mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 09:10:48 +00:00
simplified the condition
This commit is contained in:
parent
c61af32360
commit
1c52842e83
@ -1018,13 +1018,13 @@ public:
|
||||
NativeResultType const_a;
|
||||
NativeResultType const_b;
|
||||
|
||||
if constexpr (IsFloatingPoint<ResultDataType> && dec_a)
|
||||
if constexpr (!result_is_decimal && dec_a)
|
||||
const_a = DecimalUtils::convertTo<NativeResultType>(
|
||||
col_left_const->template getValue<T0>(), scale_a);
|
||||
else
|
||||
const_a = col_left_const->template getValue<T0>();
|
||||
|
||||
if constexpr (IsFloatingPoint<ResultDataType> && dec_b)
|
||||
if constexpr (!result_is_decimal && dec_b)
|
||||
const_b = DecimalUtils::convertTo<NativeResultType>(
|
||||
col_right_const->template getValue<T1>(), scale_b);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user