mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
fixing first compile bug
This commit is contained in:
parent
d24fc58c94
commit
494e9066c3
@ -1000,8 +1000,20 @@ public:
|
||||
/// non-vector result
|
||||
if (col_left_const && col_right_const)
|
||||
{
|
||||
NativeResultType const_a = col_left_const->template getValue<T0>();
|
||||
NativeResultType const_b = col_right_const->template getValue<T1>();
|
||||
NativeResultType const_a;
|
||||
NativeResultType const_b;
|
||||
|
||||
if constexpr (IsFloatingPoint<ResultDataType> && 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)
|
||||
const_b = DecimalUtils::convertTo<NativeResultType>(
|
||||
col_right_const->template getValue<T1>(), scale_b);
|
||||
else
|
||||
const_b = col_right_const->template getValue<T1>();
|
||||
|
||||
auto res = check_decimal_overflow ?
|
||||
OpImplCheck::template constantConstant<dec_a, dec_b>(const_a, const_b, scale_a, scale_b) :
|
||||
|
Loading…
Reference in New Issue
Block a user